new warnings with gcc 4.6
gcc 4.6 started to warn about set, but unused variables.
This is on a more or less recent master (May 16, 03ccce6d):
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,