[Rcpp-commits] r3848 - pkg/Rcpp/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Oct 28 23:12:57 CET 2012


Author: edd
Date: 2012-10-28 23:12:57 +0100 (Sun, 28 Oct 2012)
New Revision: 3848

Modified:
   pkg/Rcpp/src/Module.cpp
Log:
suppress one -Wunitialized warning from g++


Modified: pkg/Rcpp/src/Module.cpp
===================================================================
--- pkg/Rcpp/src/Module.cpp	2012-10-28 22:11:54 UTC (rev 3847)
+++ pkg/Rcpp/src/Module.cpp	2012-10-28 22:12:57 UTC (rev 3848)
@@ -385,7 +385,7 @@
 	void Module::add_enum( const std::string& parent_class_typeinfo_name, const std::string& enum_name, const std::map<std::string, int>& value ){
 	    // find the parent class
 	    CLASS_ITERATOR it ;
-	    class_Base* target_class ;
+	    class_Base* target_class = NULL;
 	    for( it = classes.begin(); it != classes.end(); it++){
 	        if( it->second->has_typeinfo_name(parent_class_typeinfo_name) ){
 	            target_class = it->second ;



More information about the Rcpp-commits mailing list