Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
5ff0385c
Commit
5ff0385c
authored
28 years ago
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(__sel_register_typed_name): Eliminate compiler warnings with explicit cast.
From-SVN: r13599
parent
e0d0c8a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gcc/objc/selector.c
+5
-5
No files found.
gcc/objc/selector.c
View file @
5ff0385c
/* GNU Objective C Runtime selector related functions
Copyright (C) 1993, 1995, 1996 Free Software Foundation, Inc.
Copyright (C) 1993, 1995, 1996
, 1997
Free Software Foundation, Inc.
Contributed by Kresten Krab Thorup
This file is part of GNU CC.
...
...
@@ -312,7 +312,7 @@ __sel_register_typed_name (const char *name, const char *types,
j
->
sel_types
=
(
const
char
*
)
types
;
else
{
j
->
sel_types
=
(
char
*
)
objc_malloc
(
strlen
(
types
)
+
1
);
strcpy
(
j
->
sel_types
,
types
);
strcpy
(
(
char
*
)
j
->
sel_types
,
types
);
}
l
=
(
struct
objc_list
*
)
sarray_get
(
__objc_selector_array
,
i
);
}
...
...
@@ -331,7 +331,7 @@ __sel_register_typed_name (const char *name, const char *types,
j
->
sel_types
=
(
const
char
*
)
types
;
else
{
j
->
sel_types
=
(
char
*
)
objc_malloc
(
strlen
(
types
)
+
1
);
strcpy
(
j
->
sel_types
,
types
);
strcpy
(
(
char
*
)
j
->
sel_types
,
types
);
}
l
=
0
;
}
...
...
@@ -341,14 +341,14 @@ __sel_register_typed_name (const char *name, const char *types,
{
int
is_new
=
(
l
==
0
);
char
*
new_name
;
c
onst
c
har
*
new_name
;
/* Can we use the pointer or must copy name? Don't copy if NULL */
if
((
is_const
)
||
(
name
==
0
))
new_name
=
name
;
else
{
new_name
=
(
char
*
)
objc_malloc
(
strlen
(
name
)
+
1
);
strcpy
(
new_name
,
name
);
strcpy
(
(
char
*
)
new_name
,
name
);
}
l
=
list_cons
((
void
*
)
j
,
l
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment