Your message dated Tue, 19 Nov 2002 07:56:07 +0100 with message-id <[EMAIL PROTECTED]> and subject line Bug#141015: c/8609: Superfluous warning when -std=c99/gnu99 and noreturn on main() has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 3 Apr 2002 06:34:02 +0000 >From [EMAIL PROTECTED] Wed Apr 03 00:34:02 2002 Return-path: <[EMAIL PROTECTED]> Received: from d172-163.uoregon.edu (volition) [128.223.172.163] (mail) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 16seLJ-0006ne-00; Wed, 03 Apr 2002 00:34:02 -0600 Received: from agthorr by volition with local (Exim 3.33 #1 (Debian)) id 16seLI-0001Rf-00; Tue, 02 Apr 2002 22:34:00 -0800 From: Agthorr <[EMAIL PROTECTED]> To: Debian Bug Tracking System <[EMAIL PROTECTED]> Subject: gcc-3.0: Superfluous warning when -std=c99/gnu99 and noreturn on main() X-Mailer: reportbug 1.49 Date: Tue, 02 Apr 2002 22:34:00 -0800 Message-Id: <[EMAIL PROTECTED]> Sender: Agthorr <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Package: gcc-3.0 Version: 1:3.0.4-6 Severity: normal The following program generates a superfluous warning when compiled with -std=c99 or -std=gnu99. ------------------------------------------------------------------------ #include <stdlib.h> int main (void) __attribute__ ((noreturn)); int main (void) { exit(1); } ------------------------------------------------------------------------ volition:~/tmp$ gcc-3.0 -std=c99 -c test.c test.c: In function `main': test.c:6: warning: function declared `noreturn' has a `return' statement volition:~/tmp$ ------------------------------------------------------------------------ Obviously, this warning is bogus since there is no return statement anywhere in the program :> The warning is not produced by gcc 2.95.4 nor in the default -std=gnu89 mode. Although this example is trivial, I encountered the bug in an actual program that depends on -std=gnu99 (since C99 features are used). In the program, main() starts an event loop which never directly returns; the program exits by calling exit(). -- System Information Debian Release: 3.0 Architecture: i386 Kernel: Linux volition 2.4.18volition #1 Thu Mar 28 20:13:24 PST 2002 i686 Locale: LANG=C, LC_CTYPE= Versions of packages gcc-3.0 depends on: ii binutils 2.12.90.0.1-1 The GNU assembler, linker and bina ii cpp-3.0 1:3.0.4-6 The GNU C preprocessor. ii gcc-3.0-base 1:3.0.4-6 The GNU Compiler Collection (base ii libc6 2.2.5-3 GNU C Library: Shared libraries an ii libgcc1 1:3.0.4-6 GCC support library. --------------------------------------- Received: (at 141015-done) by bugs.debian.org; 19 Nov 2002 06:58:28 +0000 >From [EMAIL PROTECTED] Tue Nov 19 00:58:25 2002 Return-path: <[EMAIL PROTECTED]> Received: from mail.cs.tu-berlin.de [130.149.17.13] (root) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 18E2L3-00076D-00; Tue, 19 Nov 2002 00:58:25 -0600 Received: from bolero.cs.tu-berlin.de ([EMAIL PROTECTED] [130.149.19.1]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id HAA24532 for <[EMAIL PROTECTED]>; Tue, 19 Nov 2002 07:56:07 +0100 (MET) Received: (from [EMAIL PROTECTED]) by bolero.cs.tu-berlin.de (8.11.6+Sun/8.9.3) id gAJ6u7J24627; Tue, 19 Nov 2002 07:56:07 +0100 (MET) From: Matthias Klose <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <[EMAIL PROTECTED]> Date: Tue, 19 Nov 2002 07:56:07 +0100 To: [EMAIL PROTECTED] Subject: Re: Bug#141015: c/8609: Superfluous warning when -std=c99/gnu99 and noreturn on main() In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> X-Mailer: VM 7.03 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid Delivered-To: [EMAIL PROTECTED] X-Spam-Status: No, hits=-8.2 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01 version=2.41 X-Spam-Level: [EMAIL PROTECTED] writes: > Synopsis: Superfluous warning when -std=c99/gnu99 and noreturn on main() > > State-Changed-From-To: analyzed->closed > State-Changed-By: bangerth > State-Changed-When: Mon Nov 18 17:13:39 2002 > State-Changed-Why: > Closed based on these comments: closing the Debian report as well.