[tor-bugs] #8598 [Tor]: clang warning in circuitbuild.c switch statement

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Mar 28 01:02:17 UTC 2013


#8598: clang warning in circuitbuild.c switch statement
------------------------------+---------------------------------------------
 Reporter:  nickm             |          Owner:                    
     Type:  defect            |         Status:  new               
 Priority:  normal            |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor               |        Version:                    
 Keywords:  tor-client clang  |         Parent:                    
   Points:                    |   Actualpoints:                    
------------------------------+---------------------------------------------
 In maint-0.2.4, building with clang 3.2 on fedora, I get:

 {{{
 src/or/circuitbuild.c:1946:11: error: enumeration values
 'PATH_STATE_NEW_CIRC',
       'PATH_STATE_BUILD_ATTEMPTED', and 'PATH_STATE_ALREADY_COUNTED' not
       explicitly handled in switch [-Werror,-Wswitch-enum]
   switch (ocirc->path_state) {
 }}}

 I have a fix for this; just adding this ticket so I can give it a bug
 number.

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


More information about the tor-bugs mailing list