diff options
author | Richard Stallman <rms@gnu.org> | 1992-11-22 21:22:32 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-11-22 21:22:32 +0000 |
commit | 57916f6118b41fd3fd3284100e1945ea98005911 (patch) | |
tree | d3dfe3f2360749580a3f905e05ab811c96a6636a /gcc | |
parent | 71dabac5ef93118bd2ff8f92eb36fda66e48874f (diff) | |
download | gcc-57916f6118b41fd3fd3284100e1945ea98005911.zip gcc-57916f6118b41fd3fd3284100e1945ea98005911.tar.gz gcc-57916f6118b41fd3fd3284100e1945ea98005911.tar.bz2 |
(c_decode_option): Decode -Wreturn-type.
From-SVN: r2772
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-decl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 2290bff..23762cb 100644 --- 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")) |