BH and RcppEigen problems, when installing package relying on rstan on a new device

I built a package relying on rstan GitHub - JoshSchramm94/mxd: mxd · GitHub
When downloading it to a new device and running devtools::document() I get multiple warnings (e.g., C:/Users/AppData/Local/R/win-library/4.5/BH/include/boost/math/quadrature/detail/exp_sinh_detail.hpp:498:7: warning: non-standard suffix on floating constant [-Wpedantic] or C:/Users/AppData/Local/R/win-library/4.5/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h:302:7: required from ‘class Eigen::DenseCoeffsBase<Eigen::Matrix<double, 4, 1>, 1>’)

I have no clue why this is happening and how to fix this problem. Did anyone face a similar issue and knows how to adjust this problem? Happy for any help.

so the problem must be the pkgbuild::compile_dll(). I have run everything according to Step by step guide for creating a package that depends on RStan. When running compile_dll(), it re-build my package and I am running into this warnings and the function is aborted. when running devtools::check(), everything works fine. I am unsure whether this is due to some compiling flags. I have left the Makevars file as it is. Happy for any help on this issue.