From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22884 invoked by alias); 16 Feb 2005 06:45:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 22859 invoked by uid 48); 16 Feb 2005 06:45:51 -0000 Date: Wed, 16 Feb 2005 14:51:00 -0000 Message-ID: <20050216064551.22858.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050216064218.20000.jsm28@gcc.gnu.org> References: <20050216064218.20000.jsm28@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/20000] missing warning for noreturn function returning non-void X-Bugzilla-Reason: CC X-SW-Source: 2005-02/txt/msg01741.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-16 06:45 ------- Confirmed, it is ovbious where the bug is if we look at the source: /* GNU C interprets a volatile-qualified function type to indicate that the function does not return. */ if ((type_quals & TYPE_QUAL_VOLATILE) && !VOID_TYPE_P (TREE_TYPE (TREE_TYPE (decl)))) warning ("% function returns non-void value"); We don't check for the attribute at all. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |diagnostic Last reconfirmed|0000-00-00 00:00:00 |2005-02-16 06:45:50 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20000