aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-03-27 21:04:08 -0400
committerNick Mathewson <nickm@torproject.org>2013-03-27 21:04:08 -0400
commit7f8098d2d0e719f3ea9e35a7f930477f8fc7682a (patch)
treede99b3bef74743c7e082e2c80145e074ec5a3d39 /src/or/circuitbuild.c
parent87d50d0617d89290ca263aa6f415e45a0c37a11a (diff)
downloadtor-7f8098d2d0e719f3ea9e35a7f930477f8fc7682a.tar
tor-7f8098d2d0e719f3ea9e35a7f930477f8fc7682a.tar.gz
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.
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index ce552b47f..aec6c6acf 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -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;