Opened 7 years ago

Closed 7 years ago

#8598 closed defect (fixed)

clang warning in circuitbuild.c switch statement

Reported by: nickm Owned by:
Priority: Medium Milestone: Tor: 0.2.4.x-final
Component: Core Tor/Tor Version:
Severity: Keywords: tor-client clang
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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.

Child Tickets

Change History (1)

comment:1 Changed 7 years ago by nickm

Resolution: fixed
Status: newclosed

7f8098d2d0e719f3ea9e35a7f930477f8fc7682a fixes this.

Note: See TracTickets for help on using tickets.