Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #3208

Closed (moved)
(moved)
Open
Created May 17, 2011 by weasel (Peter Palfrader)@weasel

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, 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,

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking