From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23828 invoked by alias); 19 Apr 2006 17:43:28 -0000 Received: (qmail 23737 invoked by uid 48); 19 Apr 2006 17:43:23 -0000 Date: Wed, 19 Apr 2006 17:43:00 -0000 Message-ID: <20060419174323.23736.qmail@sourceware.org> From: "bruno at clisp dot org" To: glibc-bugs-regex@sources.redhat.com In-Reply-To: <20050820072603.1220.eggert@gnu.org> References: <20050820072603.1220.eggert@gnu.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug regex/1220] regex uses old-style definitions that cause g++ to fail X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-regex-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-regex-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00010.txt.bz2 List-Id: ------- Additional Comments From bruno at clisp dot org 2006-04-19 17:43 ------- Ulrich Drepper wrote: > Using K&R function definitions ensures that the compiler warns about > missing prototypes. This is finer grained than a compiler can achieve this. Wrong. gcc has two options that warn for missing prototypes, even when ANSI/ISO C function definitions are used: -Wmissing-prototypes and -Wmissing-declarations. Look: ============================== foo.c ========================= int foo(int, int); int foo (int x, int y) { return x + y; } int no_prototype (int x, int y) { return x + y; } ============================================================ $ gcc -Wmissing-declarations -c foo.c foo.c:4: warning: no previous declaration for `no_prototype' $ gcc -Wmissing-prototypes -c foo.c foo.c:4: warning: no previous prototype for `no_prototype' > It is simply wrong to use g++ to compile regex.c. Period. Your attitude hampers the reuse of the code in GNU clisp. Saying "Period" is not a sound technical argument. I'm therefore reopening this issue. -- What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX | http://sourceware.org/bugzilla/show_bug.cgi?id=1220 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.