projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fa9b0a
)
Eliminate 'divide by zero' compiler warning in cordtest
author
Ivan Maidanski
<ivmai@mail.ru>
Fri, 12 Feb 2016 09:13:58 +0000
(12:13 +0300)
committer
Ivan 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
patch
|
blob
|
history
diff --git
a/cord/tests/cordtest.c
b/cord/tests/cordtest.c
index
4706c2b
..
77ab27a
100644
(file)
--- 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;