aboutsummaryrefslogtreecommitdiffstats
path: root/epan/exntest.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2015-02-19 22:41:32 +0100
committerMichael Mann <mmann78@netscape.net>2015-02-24 09:39:46 +0000
commitf9fc25241ca0c735c0945bebf04669f17c3ffbff (patch)
tree9b92cfc93bcd51fbcffc1505cf17838b9f695746 /epan/exntest.c
parentb125feae219aaa7afcd10a96a50863cdd83f5bd2 (diff)
downloadwireshark-f9fc25241ca0c735c0945bebf04669f17c3ffbff.tar.gz
wireshark-f9fc25241ca0c735c0945bebf04669f17c3ffbff.tar.bz2
wireshark-f9fc25241ca0c735c0945bebf04669f17c3ffbff.zip
exntest: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: I91ec67e8c2168dd9a93c3894abdf304c0a75845d Reviewed-on: https://code.wireshark.org/review/7263 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/exntest.c')
-rw-r--r--epan/exntest.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/exntest.c b/epan/exntest.c
index ff9c88ec14..27f6f65966 100644
--- a/epan/exntest.c
+++ b/epan/exntest.c
@@ -70,7 +70,7 @@ run_tests(void)
/* check that no catch at all is called when there is no exn */
- ex_thrown = finally_called = 0;
+ finally_called = 0;
TRY {
}
CATCH(BoundsError) {
@@ -133,7 +133,6 @@ run_tests(void)
THROW(BoundsError);
}
CATCH_ALL {
- ex_thrown += 10;
RETHROW;
}
FINALLY {
@@ -171,7 +170,6 @@ run_tests(void)
printf("05: Looping exception\n");
failed = TRUE;
} else {
- ex_thrown += 10;
THROW(BoundsError);
}
}