Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 92941c7fea5f65cdb58b139873cee796 > files > 9

glib2.0-2.54.3-1.2.mga6.src.rpm

From fa033ad638d20870412e646e6ccee212b11b3210 Mon Sep 17 00:00:00 2001
From: Ernestas Kulik <ernestask@gnome.org>
Date: Tue, 13 Feb 2018 20:57:04 +0200
Subject: [PATCH 05/18] gtester: fix -Wduplicated-branches
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

One of the “quick” or “slow” test run modes is always added to the
argument list, making the branching pointless, which, coincidentally,
now causes a warning.

https://bugzilla.gnome.org/show_bug.cgi?id=793399
---
 glib/gtester.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/glib/gtester.c b/glib/gtester.c
index 9451aea56..a799394a7 100644
--- a/glib/gtester.c
+++ b/glib/gtester.c
@@ -322,10 +322,8 @@ launch_test_binary (const char *binary,
     argc++;
   if (!subtest_mode_fatal)
     argc++;
-  if (subtest_mode_quick)
-    argc++;
-  else
-    argc++;
+  /* Either -m=quick or -m=slow is always appended. */
+  argc++;
   if (subtest_mode_perf)
     argc++;
   if (!subtest_mode_undefined)
-- 
2.13.6