[Xorp-hackers] Compiling xorp 1.8.3 for Debian using g++-4.6

Jose Manuel dos Santos Calhariz jose.spam at netvisao.pt
Sat Jul 23 06:27:30 PDT 2011


I am packaging xorp 1.8.3 for Debian.  The default compiler is now g++
v4.6.  This compiler is more stricter than previous versions.

This g++ have one new warnings:

  -Wunused-but-set-variable

This warning when used with -Werror causes a fail to build.  The 
position on Debian is to fix the problems on the source code instead
of using the flag -Wno-error=unused-but-set-variable for disabling the
warning. 

I am asking if this problem is solved in the git repository or if will
be fixed in the near future.  Maybe this is a simple fix and is enough
to comment out the affected variables. 

That's 21 warnings, follow the list of messages for reference:

cli/cli_client.cc:1352:9: warning: variable 'syntax_error_offset_prev' set but not used [-Wunused-but-set-variable]
pim/pim_mrt_mfc.cc:473:13: warning: variable 'pim_mre_wc' set but not used [-Wunused-but-set-variable]
pim/pim_proto_assert.cc:80:14: warning: variable 'group_addr_reserved_flags' set but not used [-Wunused-but-set-variable]
pim/pim_proto_join_prune.cc:87:13: warning: variable 'group_addr_reserved_flags' set but not used [-Wunused-but-set-variable]
pim/pim_proto_join_prune_message.cc:344:13: warning: variable 'source_mask_len' set but not used [-Wunused-but-set-variable]
pim/pim_proto_register_stop.cc:78:13: warning: variable 'group_addr_reserved_flags' set but not used [-Wunused-but-set-variable]
rib/tools/show_distances.cc:439:8: warning: variable 'do_run' set but not used [-Wunused-but-set-variable]
rib/tools/show_routes.cc:810:8: warning: variable 'do_run' set but not used [-Wunused-but-set-variable]
rib/register_server.cc:134:10: warning: variable 'new_queue' set but not used [-Wunused-but-set-variable]
rib/rt_tab_origin.cc:186:23: warning: variable 'dt' set but not used [-Wunused-but-set-variable]
rib/rt_tab_origin.cc:186:23: warning: variable 'dt' set but not used [-Wunused-but-set-variable]
contrib/olsr/face_manager.cc:324:23: warning: variable 'faceid' set but not used [-Wunused-but-set-variable]
contrib/olsr/message.cc:288:10: warning: variable 'haslq' set but not used [-Wunused-but-set-variable]
bgp/route_table_decision.cc:387:6: warning: variable 'result' set but not used [-Wunused-but-set-variable]
bgp/route_table_decision.cc:387:6: warning: variable 'result' set but not used [-Wunused-but-set-variable]
bgp/route_table_ribin.cc:176:4: warning: variable 'nexthop' set but not used [-Wunused-but-set-variable]
bgp/route_table_ribin.cc:176:4: warning: variable 'nexthop' set but not used [-Wunused-but-set-variable]
ospf/peer.cc:4860:7: warning: variable 'found' set but not used [-Wunused-but-set-variable]
ospf/peer.cc:4861:7: warning: variable 'partial' set but not used [-Wunused-but-set-variable]
ospf/peer.cc:4860:7: warning: variable 'found' set but not used [-Wunused-but-set-variable]
ospf/peer.cc:4861:7: warning: variable 'partial' set but not used [-Wunused-but-set-variable]


     Jose Calhariz


-- 
--
	Mostre-me um homem que não beba e eu lhe provarei que ele e
	parte camelo.
		-- W. C. Fields



More information about the Xorp-hackers mailing list