From 20bec5d8c63beb4059292d3aa89d3b8263b2facf Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 3 Aug 2010 00:17:26 +0200 Subject: [PATCH] testfw: Declare all variables before the first statement --- test/main.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/main.c b/test/main.c index 0a05b5869..0de08b5c4 100644 --- a/test/main.c +++ b/test/main.c @@ -34,8 +34,15 @@ const char USAGE_TEXT[] = " -h, --help print this help text\n" " -v, --verbose enable verbose logging of tests\n"; -int main(int argc, char **argv) +int +main(int argc, char **argv) { + suite_fn suites[] = { +#define SUITE(name) &suite_##name, +#include "test/suites.h" +#undef SUITE + NULL + }; static const struct option options[] = { {"help", no_argument, NULL, 'h'}, {"verbose", no_argument, NULL, 'v'}, @@ -62,13 +69,6 @@ int main(int argc, char **argv) } } - suite_fn suites[] = { -#define SUITE(name) &suite_##name, -#include "test/suites.h" -#undef SUITE - NULL - }; - if (getenv("RUN_FROM_BUILD_FARM")) { verbose = 1; } -- 2.47.3