[Rcpp-devel] Package Submission Barred by Pedantic

Dirk Eddelbuettel edd at debian.org
Mon Dec 17 21:13:00 CET 2018


Hi KK,

Thanks for the speedy reply.

On 17 December 2018 at 12:00, Qiang Kou wrote:
| The warning is
| 
| "d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/interprocess/detail/win32_api.hpp:145:9:
| warning: ISO C++ prohibits anonymous structs [-Wpedantic]"
| 
| It is a Windows-only warning and has been fixed in Boost 1.69.

And for Boost 1.66 we are really screwed because a good ten line above we
have

//Ignore -pedantic errors here (anonymous structs, etc.)
#if defined(BOOST_GCC)
#  if (BOOST_GCC >= 40600)
#     pragma GCC diagnostic push
#     if (BOOST_GCC >= 60000)
//#        pragma GCC diagnostic ignored "-Wpedantic"
#     else
//#        pragma GCC diagnostic ignored "-pedantic"
#     endif
#  else
#     pragma GCC system_header
#  endif
#endif

where I *had to* comment out the pragmas because CRAN Policy insists on not
altering compiler diagnostics.  :-/

Nick:  In short no easy fix.

Greetings from across Chicago,  Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list