aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2019-05-18 14:59:10 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2019-05-18 14:59:10 +0200
commit637cc79d02e2aa61b22f5a9564b1a6198c60b953 (patch)
treef3cd60e0dc170f425e2d7fc31d3f005f4b3e5466
parent7500a8166f9d5f2df595e4bef2240d0a93526507 (diff)
downloadmtest-637cc79d02e2aa61b22f5a9564b1a6198c60b953.tar.gz
mtest-637cc79d02e2aa61b22f5a9564b1a6198c60b953.tar.bz2
mtest-637cc79d02e2aa61b22f5a9564b1a6198c60b953.zip
mtest.h: move 'ret' declaration to begin of scope
This improves compatibility with -ansi compilers. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--mtest.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mtest.h b/mtest.h
index b8bc4a3..db8c4de 100644
--- a/mtest.h
+++ b/mtest.h
@@ -190,8 +190,8 @@
#define mt_fok(e) do { \
- ++mt_total_checks; \
int ret; \
+ ++mt_total_checks; \
if ((ret = e) != 0) \
{ \
fprintf(stderr, "# assert [%s:%d] %s, %s != ok\n", \