This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35017] [4.3 Regression] PR11377 pedwarns even about valid code
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jan 2008 17:39:45 -0000
- Subject: [Bug c/35017] [4.3 Regression] PR11377 pedwarns even about valid code
- References: <bug-35017-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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