aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.h
diff options
context:
space:
mode:
authorJoseph Myers <jsm@polyomino.org.uk>2004-07-22 01:00:47 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2004-07-22 01:00:47 +0100
commite508a0190bcea40145bd040532cdcce39cd22fcb (patch)
tree1ac4fa272ceee88b2f67fe94a86bf5a4e1fb5d60 /gcc/opts.h
parent3ea8cd06555c64a073fcc4a1aed9e2083b8e2262 (diff)
downloadgcc-e508a0190bcea40145bd040532cdcce39cd22fcb.zip
gcc-e508a0190bcea40145bd040532cdcce39cd22fcb.tar.gz
gcc-e508a0190bcea40145bd040532cdcce39cd22fcb.tar.bz2
re PR c/15052 (gcc frontend accepts mismatched function declaration/defintion)
PR c/15052 * c-decl.c (grokdeclarator): Only pedwarn for qualified void return type on function definitions. Move other warnings for qualified return type to -Wreturn-type. Do not condition any such warnings on -pedantic. Update comments. (start_function): Only copy function type from previous prototype declaration if return types are compatible. * c-typeck.c (function_types_compatible_p): Don't condition warning for incompatibility of volatile qualifiers on the return type on -pedantic. Update comment. * doc/invoke.texi (-Wreturn-type, -Wextra): Update. testsuite: * gcc.dg/noreturn-5.c: Test qualifiers on function type instead of on return type. * gcc.dg/qual-return-1.c: Use -Wreturn-type. Update expected messages. * gcc.dg/qual-return-2.c: Update expected messages. * gcc.dg/qual-return-3.c, gcc.dg/qual-return-4.c: New tests. From-SVN: r85024
Diffstat (limited to 'gcc/opts.h')
0 files changed, 0 insertions, 0 deletions