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 316
    • Issues 316
    • 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
  • #1848
Closed
Open
Created Aug 21, 2010 by Trac@tracbot

many "warning: 'struct in_addr' declared inside parameter list" when compiled on OpenBSD 4.8

I see many "warning: 'struct in_addr' declared inside parameter list" when I compile Tor-0.2.2.15-alpha on OpenBSD 4.8 (that's -current at the moment). The binary that I get seems to work fine though. For comparision, I don't see these warnings on FreeBSD 8.1.

all output: http://pastebin.org/646438

and a part of the output:

[...] Making all in or gcc -DHAVE_CONFIG_H -I. -I../.. -DSHARE_DATADIR=""/usr/local/share"" -DLOCALSTATEDIR=""/usr/local/var"" -DBINDIR=""/usr/local/bin"" -I../../src/common -g -O2 -Wall -g -O2 -fno-strict-aliasing -MT buffers.o -MD -MP -MF .deps/buffers.Tpo -c -o buffers.o buffers.c In file included from or.h:63, from buffers.c:14: /usr/include/arpa/inet.h:74: warning: 'struct in_addr' declared inside parameter list /usr/include/arpa/inet.h:74: warning: its scope is only this definition or declaration, which is probably not what you want /usr/include/arpa/inet.h:75: warning: 'struct in_addr' declared inside parameter list mv -f .deps/buffers.Tpo .deps/buffers.Po gcc -DHAVE_CONFIG_H -I. -I../.. -DSHARE_DATADIR=""/usr/local/share"" -DLOCALSTATEDIR=""/usr/local/var"" -DBINDIR=""/usr/local/bin"" -I../../src/common -g -O2 -Wall -g -O2 -fno-strict-aliasing -MT circuitbuild.o -MD -MP -MF .deps/circuitbuild.Tpo -c -o circuitbuild.o circuitbuild.c In file included from or.h:63, from circuitbuild.c:14: /usr/include/arpa/inet.h:74: warning: 'struct in_addr' declared inside parameter list /usr/include/arpa/inet.h:74: warning: its scope is only this definition or declaration, which is probably not what you want /usr/include/arpa/inet.h:75: warning: 'struct in_addr' declared inside parameter list mv -f .deps/circuitbuild.Tpo .deps/circuitbuild.Po gcc -DHAVE_CONFIG_H -I. -I../.. -DSHARE_DATADIR=""/usr/local/share"" -DLOCALSTATEDIR=""/usr/local/var"" -DBINDIR=""/usr/local/bin"" -I../../src/common -g -O2 -Wall -g -O2 -fno-strict-aliasing -MT circuitlist.o -MD -MP -MF .deps/circuitlist.Tpo -c -o circuitlist.o circuitlist.c In file included from or.h:63, from circuitlist.c:12: /usr/include/arpa/inet.h:74: warning: 'struct in_addr' declared inside parameter list /usr/include/arpa/inet.h:74: warning: its scope is only this definition or declaration, which is probably not what you want /usr/include/arpa/inet.h:75: warning: 'struct in_addr' declared inside parameter list mv -f .deps/circuitlist.Tpo .deps/circuitlist.Po gcc -DHAVE_CONFIG_H -I. -I../.. -DSHARE_DATADIR=""/usr/local/share"" -DLOCALSTATEDIR=""/usr/local/var"" -DBINDIR=""/usr/local/bin"" -I../../src/common -g -O2 -Wall -g -O2 -fno-strict-aliasing -MT circuituse.o -MD -MP -MF .deps/circuituse.Tpo -c -o circuituse.o circuituse.c In file included from or.h:63, from circuituse.c:12: /usr/include/arpa/inet.h:74: warning: 'struct in_addr' declared inside parameter list /usr/include/arpa/inet.h:74: warning: its scope is only this definition or declaration, which is probably not what you want /usr/include/arpa/inet.h:75: warning: 'struct in_addr' declared inside parameter list mv -f .deps/circuituse.Tpo .deps/circuituse.Po [...]

Trac:
Username: Tas

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