r-lib / cpp11

cpp11 helps you to interact with R objects using C++ code.
https://cpp11.r-lib.org/
Other
199 stars 46 forks source link

Avoid warning about cpp11::perserved, e.g. #249

Closed jimhester closed 1 month ago

jimhester commented 2 years ago
C:/r_packages/pkgcheck/lib/cpp11/include/cpp11/protect.hpp:430:1: warning: 'cpp11::preserved' defined but not used [-Wunused-variable]
  430 | preserved;
      | ^~~~~~~~~
jwood000 commented 2 years ago

@jimhester,

Any word on this?

I keep encountering this as I'm building with the docker image wch1/r-debug.

Btw, I love the package and keep up the great work!

Joseph