[Rcpp-devel] Rcpp compilation warnings
Dirk Eddelbuettel
edd at debian.org
Mon Jun 9 17:43:32 CEST 2014
On 9 June 2014 at 08:09, Wilhelm Tell wrote:
|
| I am using Intel compilers for compiling R and the packages. I have these
| warnings when compiling Rccp (0.11.2):
|
| 1) In file included from ../inst/include/Rcpp.h(57),
| from Date.cpp(31):
| ../inst/include/Rcpp/Date.h(83): warning #858: type qualifier on return type is
| meaningless
| static inline const unsigned int baseYear(){
|
| 2) Date.cpp(562): warning #437: reference to local variable of enclosing
| function is not allowed
| 2 * sizeof *sp + 4 * TZ_MAX_TIMES];
Could you possibly provide a short patch. Copy Date.h to Date.h.orig, edit
Date.h, create 'diff -u Date.h.orig Date.h' --- it is simpler if _you_
eliminate the warning as I can't as I don't have icc here.
[ That is probably part of a piece of code we borrowed from R Core, and they
have made changes there so an update is on the TODO list... ]
Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the Rcpp-devel
mailing list