On Tue, Mar 23, 2010 at 8:31 AM, Dirk Eddelbuettel <[email protected]> wrote:
>
> On 23 March 2010 at 13:16, Romain Francois wrote:
> | Le 23/03/10 12:49, Dirk Eddelbuettel a écrit :
> | >
> | > FYI, following Doug's lead re '-pedantic', I made that permanent for me 
> via
> | >
> | >     e...@ron:~$ grep pedantic .R/*
> | >     .R/Makevars:CFLAGS=-g -O3 -Wall -pipe -pedantic
> | >     .R/Makevars:CXXFLAGS=-g -O3 -Wall -pipe -pedantic
> | >
> | > which now reveals a lot of
> | >
> | >     ./RcppCommon.h:205:28: warning: anonymous variadic macros were 
> introduced in C99
> |
> | We can kill this one with the -Wno-variadic-macros flag
>
> Hmpf. Not great.
>
> | > as well as
> | >
> | >     from Promise.cpp:22:
> | >     ./Rcpp/Vector.h:434:30: warning: ISO C99 requires rest arguments to 
> be used
> | >     ./Rcpp/Vector.h:441:29: warning: ISO C99 requires rest arguments to 
> be used
> | >     ./Rcpp/Vector.h:477:26: warning: ISO C99 requires rest arguments to 
> be used
> | >     ./Rcpp/Vector.h:482:30: warning: ISO C99 requires rest arguments to 
> be used
> | >     ./Rcpp/Vector.h:496:31: warning: ISO C99 requires rest arguments to 
> be used
> |
> | This one, I'm not sure. Any ideas ?
>
> #ifdef protect your DEBUG macro that triggers is?

Those are the cases where RCPP_DEBUG is being called with a format
string only.  The message seems to indicate that there should be at
least one other argument in the ... list, even if it is not used.  I
got rid of the warnings by appending ", 0" to the format string when
it appears alone.  I would check in the modified file except that
emacs has changed the indentation on all the lines that I changed and
I can't easily recover the original indentation.

>
> Dirk
>
> --
>  Registration is open for the 2nd International conference R / Finance 2010
>  See http://www.RinFinance.com for details, and see you in Chicago in April!
> _______________________________________________
> Rcpp-devel mailing list
> [email protected]
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to