lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] [PATCH 2/3] Remove unused variables.


From: Vadim Zeitlin
Subject: [lmi] [PATCH 2/3] Remove unused variables.
Date: Mon, 29 Sep 2014 16:30:23 +0200

This avoids

        variable 'name' set but not used [-Werror=unused-but-set-variable]

warnings/errors generated by at least g++ 4.9.1.
---
 census_view.cpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/census_view.cpp b/census_view.cpp
index 5f0992b..59b63bd 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -651,8 +651,6 @@ class renderer_fallback_convertor : public 
renderer_type_convertor
 
 renderer_type_convertor const& renderer_type_convertor::get(any_member<Input> 
const& value)
 {
-    mc_enum_base const* as_enum = NULL;
-    datum_sequence const* as_sequence = NULL;
     tn_range_base const* as_range = NULL;
 
     any_member<Input>& nonconst_value = const_cast<any_member<Input>&>(value);
@@ -663,12 +661,10 @@ class renderer_fallback_convertor : public 
renderer_type_convertor
         }
     else if(0 != reconstitutor<mc_enum_base  
,Input>::reconstitute(nonconst_value))
         {
-        as_enum = member_cast<mc_enum_base>(value);
         return get_impl<renderer_enum_convertor>();
         }
     else if(0 != 
reconstitutor<datum_sequence,Input>::reconstitute(nonconst_value))
         {
-        as_sequence = member_cast<datum_sequence>(value);
         return get_impl<renderer_sequence_convertor>();
         }
     else if(0 != reconstitutor<tn_range_base 
,Input>::reconstitute(nonconst_value))
-- 
2.1.0.rc0

reply via email to

[Prev in Thread] Current Thread [Next in Thread]