<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi, Nicholas,<div><br></div><div>First, what you reported is a known issue from boost [1], not Rcpp.</div><div><br></div><div>Second, this issue has been fixed in boost 1.69 [2] and the bh package still uses 1.66.</div><div><br></div><div>Third, this warning won't block your submission to CRAN [3] [4].</div><div><br></div><div>I hope I answered your question.</div><div><br></div><div>Best wishes,</div><div><br></div><div>KK</div><div><br></div><div>[1] <a href="https://github.com/boostorg/interprocess/issues/59">https://github.com/boostorg/interprocess/issues/59</a></div><div><br></div><div>[2] <a href="https://github.com/boostorg/interprocess/blob/develop/doc/interprocess.qbk#L6767">https://github.com/boostorg/interprocess/blob/develop/doc/interprocess.qbk#L6767</a></div><div><br></div><div>[3] <a href="https://github.com/boostorg/interprocess/issues/59#issuecomment-426156101">https://github.com/boostorg/interprocess/issues/59#issuecomment-426156101</a></div><div><br></div><div>[4] <a href="https://www.r-project.org/nosvn/R.check/r-devel-windows-ix86+x86_64/bigmemory-00check.html">https://www.r-project.org/nosvn/R.check/r-devel-windows-ix86+x86_64/bigmemory-00check.html</a></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 5, 2018 at 9:16 PM Nicholas Rittler <<a href="mailto:rittlern@uchicago.edu">rittlern@uchicago.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">When you say "unset it", do you mean physically delete the flag from the file? <div><br></div><div>I don't see the pedantic flag set in my {R_HOME}/etc/Makeconf or any Makevars file locally, so I tried passing "-Wno-pedantic", but this renders warnings later on about non-portable code.</div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 31, 2018 at 5:11 AM Dirk Eddelbuettel <<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On 30 October 2018 at 23:52, Nicholas Rittler wrote:<br>
| In attempting to submit a package to CRAN, I'm receiving the following<br>
| warning:<br>
<br>
"I'm receiving" as in "I see this when I compile at home" or as in "I see<br>
this in win-builder" ?<br>
<br>
| d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/interprocess/detail/win32_api.hpp:145:9:<br>
| warning: ISO C++ prohibits anonymous structs [-Wpedantic]<br>
| <br>
| I obviously would like to get rid of this warning and get the package on<br>
| CRAN. I now know that CRAN doesn't set pendantic, however, the following is<br>
| the makevars.win the package is currently using, in it's entirety:<br>
| <br>
| PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)<br>
| PKG_CPPFLAGS = -I.<br>
| <br>
| I don't see where this is setting pendantic either. Is it possible it's a<br>
| default local setting on my end? If so, is there some flag that can be<br>
<br>
Yes, likely.<br>
<br>
| passed in the makevars file that will not generate warnings about<br>
| non-portable code and will make sure pedantic is not set?<br>
<br>
It might be how R was built, ie the flag got "baked in" when R configured and<br>
compiled. These flags then sit in ${R_HOME}/etc/Makeconf.  If so you'd have<br>
to edit the file -- we can't alter these options on the fly.<br>
<br>
Or it could be in a file of yours, for me it is ~/.R/Makevars where I in fact<br>
often set -pedantic (and alsod unset it).<br>
<br>
The bigger news is that you should not have to worry about it. It is just a<br>
warning, and it comes from code you did not write but just use -- Boost<br>
headers via the BH package.<br>
<br>
Dirk<br>
<br>
-- <br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a><br>
</blockquote></div>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a></blockquote></div>