[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #4618 [Tor Relay]: Compiler warnings in transports.c



#4618: Compiler warnings in transports.c
-----------------------+----------------------------------------------------
 Reporter:  sjmurdoch  |          Owner:     
     Type:  defect     |         Status:  new
 Priority:  normal     |      Milestone:     
Component:  Tor Relay  |        Version:     
 Keywords:             |         Parent:     
   Points:             |   Actualpoints:     
-----------------------+----------------------------------------------------
 In b5a306e82c684bdd30b832fdfd9e2b55c06b54ae, building on Windows using gcc
 4.6.1 (from mingw32), transports.c flags up some compiler errors.

 Does the environ global exist on Windows?

 The second problem looks reasonably straight forward.

 {{{
 transports.c: In function 'set_managed_proxy_environment':
 transports.c:948:3: error: function declaration isn't a prototype [-Werror
 =strict-prototypes]
 transports.c:948:3: error: nested extern declaration of '__p__environ'
 [-Werror=nested-externs]
 transports.c:948:17: error: redundant redeclaration of '__p__environ'
 [-Werror=redundant-decls]
 c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/stdlib.h:149:51:
 note: previous declaration of '__p__environ' was here
 transports.c:1024:9: error: pointer of type 'void *' used in arithmetic
 [-Werror=pointer-arith]
 transports.c:1026:9: error: pointer of type 'void *' used in arithmetic
 [-Werror=pointer-arith]
 cc1.exe: all warnings being treated as errors
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4618>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs