Add some missing case values to please clang

It seems that some versions of clang that would prefer the
-Wswitch-enum compiler flag to warn about switch statements with
missing enum values, even if those switch statements have a
default.

Fixes bug 8598; bugfix on 0.2.4.10-alpha.
This commit is contained in:
Nick Mathewson 2013-03-27 21:04:08 -04:00
parent 87d50d0617
commit 7f8098d2d0
2 changed files with 9 additions and 0 deletions

6
changes/bug8598 Normal file
View File

@ -0,0 +1,6 @@
o Bugfixes:
- Fix compilation warning with some versions of clang that would prefer
the -Wswitch-enum compiler flag to warn about switch statements with
missing enum values, even if those switch statements have a default:
statement. Fixes bug 8598; bugfix on 0.2.4.10-alpha.

View File

@ -2010,6 +2010,9 @@ pathbias_check_close(origin_circuit_t *ocirc, int reason)
pathbias_count_use_failed(ocirc);
break;
case PATH_STATE_NEW_CIRC:
case PATH_STATE_BUILD_ATTEMPTED:
case PATH_STATE_ALREADY_COUNTED:
default:
// Other states are uninteresting. No stats to count.
break;