[Rcpp-commits] r2948 - pkg/Rcpp/inst/include/Rcpp/module
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Apr 5 12:15:02 CEST 2011
Author: edd
Date: 2011-04-05 12:15:02 +0200 (Tue, 05 Apr 2011)
New Revision: 2948
Modified:
pkg/Rcpp/inst/include/Rcpp/module/Module_generated_ctor_signature.h
Log:
better fix to 'unused parameter' warning for non-template inline version -- thanks Romain!
Modified: pkg/Rcpp/inst/include/Rcpp/module/Module_generated_ctor_signature.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/module/Module_generated_ctor_signature.h 2011-04-05 09:01:22 UTC (rev 2947)
+++ pkg/Rcpp/inst/include/Rcpp/module/Module_generated_ctor_signature.h 2011-04-05 10:15:02 UTC (rev 2948)
@@ -22,13 +22,9 @@
#ifndef Rcpp_Module_generated_ctor_signature_h
#define Rcpp_Module_generated_ctor_signature_h
-inline void ctor_signature( std::string& s, const std::string& classname ){
+inline void ctor_signature( std::string& s, const std::string& ){
s.clear() ;
s+= "()" ;
- if (0 > 1) { // silences 'unused paramater' warning from g++
- std::string foo = classname;
- foo.clear();
- }
}
template <typename U0>
More information about the Rcpp-commits
mailing list