You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This does not result from C/C++ code of RcppCWB, but from the Rcpp package. Thus, compiling the Rcpp version currently available at CRAN (v1.0.6) also yields this warning. On my system:
../inst/include/Rcpp/DataFrame.h:136:18: warning: unused variable 'data' [-Wunused-variable]
SEXP data = Parent::get__();
This is just a warning and does not indicate real trouble. For the time being, the solution is to install an updated version of Rcpp not yet available at CRAN. A conversation on Stackoverflow explains that it is available via a drat repository:
The alterntive to updating Rcpp is to add the flag -Wno-unusedto the CXXFLAGS in ~/.R/Makevars, but this conceals something that can and should be fixed easily. This is why I think that using the updates of Rcpp is the better solution. In my case v1.0.6.7 did the job.
It is just a matter of time that a new Rcpp version is released via CRAN which will not result in the warning. Then this issue can be closed.
The text was updated successfully, but these errors were encountered:
Update: The warning depends on the compiler. I see it with clang v11.0.3 (macOS), but gcc v10.3.0 (Debian). Anyway, as Rcpp v1.0.7 is available as a binary package for all systems on CRAN, requiring this version (in DESCRIPTION, Suggests:) is the solution.
When compiling RcppCWB you may see the following warning:
This does not result from C/C++ code of RcppCWB, but from the Rcpp package. Thus, compiling the Rcpp version currently available at CRAN (v1.0.6) also yields this warning. On my system:
This is just a warning and does not indicate real trouble. For the time being, the solution is to install an updated version of Rcpp not yet available at CRAN. A conversation on Stackoverflow explains that it is available via a drat repository:
The alterntive to updating Rcpp is to add the flag
-Wno-unused
to the CXXFLAGS in~/.R/Makevars
, but this conceals something that can and should be fixed easily. This is why I think that using the updates of Rcpp is the better solution. In my case v1.0.6.7 did the job.It is just a matter of time that a new Rcpp version is released via CRAN which will not result in the warning. Then this issue can be closed.
The text was updated successfully, but these errors were encountered: