#80 Improper prototype in stdlib.h

closed-fixed
nobody
2001-10-12
2001-10-10
Anonymous
No

When compiling a C file with -Wstrict-prototypes,
lines 153 and 154 in stdlib.h cause a warning due to a
missing argument specification (void) in the prototype:

extern char *** __p__environ();
extern wchar_t *** __p__wenviron();

should be:

extern char *** __p__environ(void);
extern wchar_t *** __p__wenviron(void);

Discussion

  • Danny Smith
    Danny Smith
    2001-10-12

    • status: open --> closed-fixed
     
  • Danny Smith
    Danny Smith
    2001-10-12

    Logged In: YES
    user_id=11494

    Thanks. This has been fixed in CVS.