[Rcpp-devel] Warning in R-forge revision 949 of Rcpp
Romain Francois
romain.francois at dbmail.com
Tue Mar 30 08:26:59 CEST 2010
Le 28/03/10 18:45, Douglas Bates a écrit :
>
> 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;
Yes. Commited now. thanks. We need to grep for operator= and check if
they always return something. Maybe tonight.
> at the end of the function but I don't really know enough about C++ to
> be confident of that.
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/OIXN : raster images and RImageJ
|- http://tr.im/OcQe : Rcpp 0.7.7
`- http://tr.im/O1wO : highlight 0.1-5
More information about the Rcpp-devel
mailing list