[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #3208 [Tor Relay]: new warnings with gcc 4.6



#3208: new warnings with gcc 4.6
-----------------------+----------------------------------------------------
 Reporter:  weasel     |          Owner:                    
     Type:  defect     |         Status:  new               
 Priority:  normal     |      Milestone:                    
Component:  Tor Relay  |        Version:  Tor: 0.2.3.1-alpha
 Keywords:             |         Parent:                    
   Points:             |   Actualpoints:                    
-----------------------+----------------------------------------------------
 gcc 4.6 started to warn about set, but unused variables.

 This is on a more or less recent master (May 16,
 03ccce6d776c617d81837ae9cc1f33f45d154e92):

 util.c: In function 'tor_spawn_background':
 util.c:2968:11: warning: variable 'nbytes' set but not used [-Wunused-but-
 set-variable]
 circuitbuild.c: In function 'entry_guards_compute_status':
 circuitbuild.c:3785:7: warning: variable 'severity' set but not used
 [-Wunused-but-set-variable]
 command.c: In function 'command_process_netinfo_cell':
 command.c:567:12: warning: variable 'my_apparent_addr' set but not used
 [-Wunused-but-set-variable]
 control.c: In function 'control_event_circuit_status':
 control.c:3166:7: warning: variable 'providing_reason' set but not used
 [-Wunused-but-set-variable]
 directory.c: In function 'connection_dir_client_reached_eof':
 directory.c:2008:15: warning: variable 'rejected' set but not used
 [-Wunused-but-set-variable]
 dirvote.c: In function 'networkstatus_compute_consensus':
 dirvote.c:1588:27: warning: variable 'chosen_unnamed_idx' set but not used
 [-Wunused-but-set-variable]
 eventdns.c: In function 'request_parse':
 eventdns.c:1021:54: warning: variable 'additional' set but not used
 [-Wunused-but-set-variable]
 eventdns.c:1021:43: warning: variable 'authority' set but not used
 [-Wunused-but-set-variable]
 eventdns.c:1021:34: warning: variable 'answers' set but not used
 [-Wunused-but-set-variable]
 test_crypto.c: In function 'test_crypto_rng':
 test_crypto.c:58:10: warning: variable 'j' set but not used [-Wunused-but-
 set-variable]
 test_crypto.c: In function 'test_crypto_sha':
 test_crypto.c:233:7: warning: variable 'i' set but not used [-Wunused-but-
 set-variable]
 tor-resolve.c: In function 'main':
 tor-resolve.c:322:51: warning: variable 'force' set but not used
 [-Wunused-but-set-variable]

 Cheers,

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3208>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs