projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71dabac
)
(c_decode_option): Decode -Wreturn-type.
author
Richard Stallman
<rms@gnu.org>
Sun, 22 Nov 1992 21:22:32 +0000
(21:22 +0000)
committer
Richard Stallman
<rms@gnu.org>
Sun, 22 Nov 1992 21:22:32 +0000
(21:22 +0000)
From-SVN: r2772
gcc/c-decl.c
patch
|
blob
|
history
diff --git
a/gcc/c-decl.c
b/gcc/c-decl.c
index 2290bffd18c6f5b88c3cd237374b81910fa6b718..23762cb3720314a38bf955a67496b95b3b293433 100644
(file)
--- a/
gcc/c-decl.c
+++ b/
gcc/c-decl.c
@@
-627,6
+627,10
@@
c_decode_option (p)
warn_parentheses = 1;
else if (!strcmp (p, "-Wno-parentheses"))
warn_parentheses = 0;
+ else if (!strcmp (p, "-Wreturn-type"))
+ warn_return_type = 1;
+ else if (!strcmp (p, "-Wno-return-type"))
+ warn_return_type = 0;
else if (!strcmp (p, "-Wcomment"))
; /* cpp handles this one. */
else if (!strcmp (p, "-Wno-comment"))