From: Ivan Maidanski Date: Fri, 12 Feb 2016 09:13:58 +0000 (+0300) Subject: Eliminate 'divide by zero' compiler warning in cordtest X-Git-Tag: gc7_6_0~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8be60c4b48d179ed2b7ee5fa589b052481c7b05f;p=gc Eliminate 'divide by zero' compiler warning in cordtest * cord/tests/cordtest.c (ABORT): Remove "int x = 0; x = 1 / x" code. --- diff --git a/cord/tests/cordtest.c b/cord/tests/cordtest.c index 4706c2b4..77ab27a6 100644 --- a/cord/tests/cordtest.c +++ b/cord/tests/cordtest.c @@ -21,7 +21,7 @@ /* that real clients shouldn't rely on. */ # define ABORT(string) \ - { int x = 0; fprintf(stderr, "FAILED: %s\n", string); x = 1 / x; abort(); } + { fprintf(stderr, "FAILED: %s\n", string); abort(); } int count;