[tor-bugs] #1848 [- Select a component]: many "warning: 'struct in_addr' declared inside parameter list" when compiled on OpenBSD 4.8

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sat Aug 21 03:44:26 UTC 2010


#1848: many "warning: 'struct in_addr' declared inside parameter list" when
compiled on OpenBSD 4.8
---------------------------------+------------------------------------------
 Reporter:  Tas                  |        Type:  defect              
   Status:  new                  |    Priority:  normal              
Milestone:                       |   Component:  - Select a component
  Version:  Tor: 0.2.2.15-alpha  |    Keywords:                      
   Parent:                       |  
---------------------------------+------------------------------------------
 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
 [...]

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1848>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list