[glib: 3/9] tests: Drop redundant store




commit c02890645b49a42bbda04006c3ff9a8801731dad
Author: Philip Withnall <pwithnall endlessos org>
Date:   Thu Apr 28 10:43:13 2022 +0100

    tests: Drop redundant store
    
    This fixes a scan-build warning:
    ```
    ../../../../source/glib/gio/tests/gdbus-tests.c:146:3: warning: Value stored to 'watch_id' is never read 
[deadcode.DeadStores]
      watch_id = 0;
      ^
    ```
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #1767

 gio/tests/gdbus-tests.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/gio/tests/gdbus-tests.c b/gio/tests/gdbus-tests.c
index 1003d07e0a..869f1ffe96 100644
--- a/gio/tests/gdbus-tests.c
+++ b/gio/tests/gdbus-tests.c
@@ -143,7 +143,6 @@ ensure_gdbus_testserver_up (GDBusConnection *connection,
     g_main_context_iteration (context, TRUE);
 
   g_bus_unwatch_name (watch_id);
-  watch_id = 0;
 
   while (!data.unwatch_complete)
     g_main_context_iteration (context, TRUE);


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