[gnome-desktop-testing/wip/no-autotools: 1/8] Fix error with -Werror=declaration-after-statement




commit 40a14b44adf74db298c017bef4136b13b761de42
Author: Simon McVittie <smcv collabora com>
Date:   Tue Jun 29 17:14:00 2021 +0100

    Fix error with -Werror=declaration-after-statement
    
    The build system was meant to enforce this, but due to a bug in
    Makefile-tests.am, the WARN_CFLAGS weren't used for anything.
    
    Signed-off-by: Simon McVittie <smcv collabora com>

 src/gnome-desktop-testing-runner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-desktop-testing-runner.c b/src/gnome-desktop-testing-runner.c
index 2730932..536eb8f 100644
--- a/src/gnome-desktop-testing-runner.c
+++ b/src/gnome-desktop-testing-runner.c
@@ -589,6 +589,7 @@ run_test_async (GdtrTest                *test,
   g_autoptr(GSubprocessLauncher) proc_context = NULL;
   g_autoptr(GSubprocess) proc = NULL;
   GTask *task;
+  GSubprocessFlags flags = G_SUBPROCESS_FLAGS_NONE;
 
   g_assert (test->state == TEST_STATE_LOADED);
 
@@ -647,7 +648,6 @@ run_test_async (GdtrTest                *test,
       goto out;
   }
 
-  GSubprocessFlags flags = G_SUBPROCESS_FLAGS_NONE;
   if (opt_report_directory || opt_log_directory)
     flags |= G_SUBPROCESS_FLAGS_STDERR_MERGE;
   proc_context = g_subprocess_launcher_new (flags);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]