From 06c6cd3ac33718599fb32e1091e7ae9a4b2e5b4b Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 12 Feb 2016 12:13:58 +0300 Subject: [PATCH] Eliminate 'divide by zero' compiler warning in cordtest * cord/tests/cordtest.c (ABORT): Remove "int x = 0; x = 1 / x" code. --- cord/tests/cordtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cord/tests/cordtest.c b/cord/tests/cordtest.c index bbbc5eca..f0f78e83 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; -- 2.40.0