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, 12 Feb 2016 09:13:58 +0000 (12:13 +0300)
* cord/tests/cordtest.c (ABORT): Remove "int x = 0; x = 1 / x" code.

cord/tests/cordtest.c

index 4706c2b..77ab27a 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;