-
-
Notifications
You must be signed in to change notification settings - Fork 221
Closed
Description
I enabled some more warnings when compiling a package that uses Rcpp and got this warning which seems to be caused by Rcpp itself:
In file included from /usr/local/lib/R/site-library/Rcpp/include/Rcpp/date_datetime/date_datetime.h:29:
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/date_datetime/Datetime.h:83:65: warning: format specifies type 'int' but the argument has type 'unsigned int' [-Wformat]
83 | res = ::snprintf(txtsec, 63, "%s.%06d", txtiso, m_us);
| ~~~~ ^~~~
| %06u
It probably doesn't make any practical difference for the result, but it's nice if Rcpp itself doesn't trigger common compiler warnings.
eddelbuettel
Metadata
Metadata
Assignees
Labels
No labels