]> granicus.if.org Git - gc/commitdiff
Eliminate 'divide by zero' compiler warning in cordtest
authorIvan Maidanski <ivmai@mail.ru>
Fri, 12 Feb 2016 09:13:58 +0000 (12:13 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 11 Mar 2016 21:02:19 +0000 (00:02 +0300)
* cord/tests/cordtest.c (ABORT): Remove "int x = 0; x = 1 / x" code.

cord/tests/cordtest.c

index bbbc5eca26351f71b21874aeeb5c0e1e70923e99..f0f78e83d7aa71db87e1415cfa11677c426d289c 100644 (file)
@@ -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;