[Rd] Strict-prototypes definitions in R includes

Laurent Gautier lgautier at gmail.com
Sun Jan 27 15:49:42 CET 2008


  Dear list,

  Whenever the flag "-Wstrict-prototypes" is set in gcc, compiling code that
includes headers in lib/R/include generates often warnings
(example with R-2.6.1:
Rinternals.h:560: warning: function declaration isn't a prototype
).

  All such warnings I looked at were about functions with empty
signatures declared
as "bar foo();" rather than "bar foo(void);". Is there a reason, or is
this just an oversight in the include files ?

  Thanks,


Laurent



More information about the R-devel mailing list