From: Micah Cowan Date: Wed, 23 Apr 2008 05:06:50 +0000 (-0700) Subject: Move declaration before statements. X-Git-Tag: v1.13~421^2~27 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=7fc6af0faffd653f42c60a02b3d5d19a0b0cd67e Move declaration before statements. --- diff --git a/src/ChangeLog b/src/ChangeLog index 0a5f0b33..51946933 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-04-22 Alain Guibert + + * test.h (mu_run_test): Move declaration before statements, for + C90 conformance. + 2008-04-22 Mike Frysinger * Makefile.am: Move @LIBS@ after other libraries, for better diff --git a/src/test.h b/src/test.h index 496954e2..91baf589 100644 --- a/src/test.h +++ b/src/test.h @@ -34,8 +34,9 @@ as that of the covered work. */ #define mu_assert(message, test) do { if (!(test)) return message; } while (0) #define mu_run_test(test) \ do { \ + const char *message; \ puts("RUNNING TEST " #test "..."); \ - const char *message = test(); \ + message = test(); \ tests_run++; \ if (message) return message; \ puts("PASSED\n"); \