]> sjero.net Git - wget/commitdiff
Move declaration before statements.
authorMicah Cowan <micah@cowan.name>
Wed, 23 Apr 2008 05:06:50 +0000 (22:06 -0700)
committerMicah Cowan <micah@cowan.name>
Wed, 23 Apr 2008 05:06:50 +0000 (22:06 -0700)
src/ChangeLog
src/test.h

index 0a5f0b33460449d228fa4f37700103739892e498..51946933aaea2237b01a9a3f5996b5c47ededa13 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-22  Alain Guibert  <alguibert+bts@free.fr>
+
+       * test.h (mu_run_test): Move declaration before statements, for
+       C90 conformance.
+
 2008-04-22  Mike Frysinger  <vapier@gentoo.org>
 
        * Makefile.am: Move @LIBS@ after other libraries, for better
index 496954e20697aa2a425014aebc8741b8cc9e933c..91baf589ac6651d3638885406f5f702d73b4bf4c 100644 (file)
@@ -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"); \