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
5c8902bb
Commit
5c8902bb
authored
Jun 24, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(lang_decode_option): Set warn_bad_function_cast for
-Wbad-function-cast. From-SVN: r7561
parent
add2167d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
gcc/c-decl.c
+10
-0
No files found.
gcc/c-decl.c
View file @
5c8902bb
...
@@ -466,6 +466,12 @@ int warn_write_strings;
...
@@ -466,6 +466,12 @@ int warn_write_strings;
int
warn_cast_qual
;
int
warn_cast_qual
;
/* Nonzero means warn when casting a function call to a type that does
not match the return type (e.g. (float)sqrt() or (anything*)malloc()
when there is no previous declaration of sqrt or malloc. */
int
warn_bad_function_cast
;
/* Warn about traditional constructs whose meanings changed in ANSI C. */
/* Warn about traditional constructs whose meanings changed in ANSI C. */
int
warn_traditional
;
int
warn_traditional
;
...
@@ -621,6 +627,10 @@ c_decode_option (p)
...
@@ -621,6 +627,10 @@ c_decode_option (p)
warn_cast_qual
=
1
;
warn_cast_qual
=
1
;
else
if
(
!
strcmp
(
p
,
"-Wno-cast-qual"
))
else
if
(
!
strcmp
(
p
,
"-Wno-cast-qual"
))
warn_cast_qual
=
0
;
warn_cast_qual
=
0
;
else
if
(
!
strcmp
(
p
,
"-Wbad-function-cast"
))
warn_bad_function_cast
=
1
;
else
if
(
!
strcmp
(
p
,
"-Wno-bad-function-cast"
))
warn_bad_function_cast
=
0
;
else
if
(
!
strcmp
(
p
,
"-Wpointer-arith"
))
else
if
(
!
strcmp
(
p
,
"-Wpointer-arith"
))
warn_pointer_arith
=
1
;
warn_pointer_arith
=
1
;
else
if
(
!
strcmp
(
p
,
"-Wno-pointer-arith"
))
else
if
(
!
strcmp
(
p
,
"-Wno-pointer-arith"
))
...
...
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