[tor-bugs] #5173 [Tor Client]: `extern char **environ; ` is not always harmless

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun Feb 19 14:21:53 UTC 2012


#5173: `extern char **environ;` is not always harmless
------------------------+---------------------------------------------------
 Reporter:  rransom     |          Owner:                    
     Type:  defect      |         Status:  new               
 Priority:  blocker     |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor Client  |        Version:                    
 Keywords:              |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------
 SwissTorExit reports a compile error on Kubuntu 11.10 amd64, with GCC
 4.6.1:
 {{{
 compat.c:1667:15: erreur: redundant redeclaration of ‘environ’ [-Werror
 =redundant-decls]
 /usr/include/unistd.h:542:15: note: previous declaration of ‘environ’ was
 here
 cc1: all warnings being treated as errors
 }}}

 Apparently `extern char **environ;` isn't always harmless.

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


More information about the tor-bugs mailing list