Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Tor Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 831
    • Issues 831
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 36
    • Merge requests 36
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • TorTor
  • Issues
  • #3692

Closed
Open
Created Aug 05, 2011 by Karsten Loesing@karsten

Fix compiler warnings in master

When compiling current master with --enable-gcc-warnings set, I get the following errors:

connection_edge.c: In function ‘connection_edge_process_inbuf’:
connection_edge.c:160: error: format ‘%ld’ expects type ‘long int’, but argument 7 has type ‘size_t’
connection_edge.c: In function ‘connection_ap_handshake_send_begin’:
connection_edge.c:2444: error: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘size_t’
connection_edge.c:2444: error: format ‘%ld’ expects type ‘long int’, but argument 6 has type ‘size_t’

I changed %ld into %d in those lines in my sources which made the warnings go away. But I'm not sure if that's the right fix, which is why I didn't attach a patch.

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