* [PATCH] gprofng: fix -Wduplicated-cond warning
@ 2022-09-21 20:11 vladimir.mezentsev
0 siblings, 0 replies; only message in thread
From: vladimir.mezentsev @ 2022-09-21 20:11 UTC (permalink / raw)
To: binutils; +Cc: Vladimir Mezentsev
From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
gprofng/ChangeLog
2022-09-21 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
* src/collctrl.cc: Fix -Wduplicated-cond warning.
---
gprofng/src/collctrl.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gprofng/src/collctrl.cc b/gprofng/src/collctrl.cc
index 48c65ff6f24..04e3e57bca5 100644
--- a/gprofng/src/collctrl.cc
+++ b/gprofng/src/collctrl.cc
@@ -760,7 +760,7 @@ Coll_Ctrl::get_collect_args ()
*p++ = strdup ("-s");
if (synctrace_thresh < 0)
*p++ = strdup ("calibrate");
- else if (synctrace_thresh < 0)
+ else if (synctrace_thresh == 0)
*p++ = strdup ("all");
else
*p++ = dbe_sprintf ("%d", synctrace_thresh);
--
2.31.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-21 20:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-21 20:11 [PATCH] gprofng: fix -Wduplicated-cond warning vladimir.mezentsev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).