From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6271 invoked by alias); 29 Jan 2008 17:40:36 -0000 Received: (qmail 4427 invoked by uid 48); 29 Jan 2008 17:39:45 -0000 Date: Tue, 29 Jan 2008 18:00:00 -0000 Message-ID: <20080129173945.4426.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/35017] [4.3 Regression] PR11377 pedwarns even about valid code 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: 2008-01/txt/msg03592.txt.bz2 ------- Comment #3 from jakub at gcc dot gnu dot org 2008-01-29 17:39 ------- BTW, the patch I've attached doesn't bootstrap, got an error on bitmap.c. Simplified testcase: typedef int bitmap_element; typedef struct { bitmap_element *first; } *bitmap; extern void bitmap_clear (bitmap); static void bitmap_elt_clear_from (bitmap, bitmap_element *); void bitmap_elt_clear_from (bitmap head, bitmap_element *elt) { (void) head; (void) elt; } inline void bitmap_clear (bitmap head) { if (head->first) bitmap_elt_clear_from (head, head->first); } If this is valid ISO C99, then I'll need to adjust the patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35017