This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/35017] [4.3 Regression] PR11377 pedwarns even about valid code



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]