From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5695 invoked by alias); 14 Jan 2010 22:50:04 -0000 Received: (qmail 5452 invoked by alias); 14 Jan 2010 22:49:37 -0000 Date: Thu, 14 Jan 2010 22:50:00 -0000 Message-ID: <20100114224937.5451.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/42674] [4.4/4.5 Regression] Bogus "no return statement in function returning non-void" warning In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-01/txt/msg01803.txt.bz2 ------- Comment #8 from jakub at gcc dot gnu dot org 2010-01-14 22:49 ------- Subject: Bug 42674 Author: jakub Date: Thu Jan 14 22:49:17 2010 New Revision: 155922 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155922 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: branches/gcc-4_4-branch/gcc/testsuite/c-c++-common/pr42674.c Modified: branches/gcc-4_4-branch/gcc/ChangeLog branches/gcc-4_4-branch/gcc/c-decl.c branches/gcc-4_4-branch/gcc/cp/ChangeLog branches/gcc-4_4-branch/gcc/cp/decl.c branches/gcc-4_4-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42674