[Bug middle-end/42674] [4.4/4.5 Regression] Bogus "no return statement in function returning non-void" warning

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jan 14 22:44:00 GMT 2010



------- Comment #7 from jakub at gcc dot gnu dot org  2010-01-14 22:44 -------
Subject: Bug 42674

Author: jakub
Date: Thu Jan 14 22:43:56 2010
New Revision: 155920

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155920
Log:
        PR middle-end/42674
        * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
        functions with noreturn attribute.

        * decl.c (finish_function): Don't emit -Wreturn-type warnings in
        functions with noreturn attribute.

        * c-c++-common/pr42674.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/pr42674.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42674



More information about the Gcc-bugs mailing list