[Rcpp-devel] Warning in R-forge revision 949 of Rcpp
Douglas Bates
bates at stat.wisc.edu
Sun Mar 28 18:45:43 CEST 2010
I haven't encountered this before. When the -Wall flag is set for a
compilation of a package that includes Rcpp.h you get a warning
/home/bates/R/x86_64-unknown-linux-gnu-library/2.11/Rcpp/lib/Rcpp/Vector.h:
In member function ‘Rcpp::Vector<RTYPE>&
Rcpp::Vector<RTYPE>::operator=(const Rcpp::Vector<RTYPE>&) [with int
RTYPE = 14]’:
RcppLapack.cpp:16: instantiated from here
/home/bates/R/x86_64-unknown-linux-gnu-library/2.11/Rcpp/lib/Rcpp/Vector.h:491:
warning: no return statement in function returning non-void
I believe that there is a missing
return *this;
at the end of the function but I don't really know enough about C++ to
be confident of that.
More information about the Rcpp-devel
mailing list