public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gprofng: fix -Wduplicated-cond warning
@ 2022-09-22 2:00 Vladimir Mezentsev
0 siblings, 0 replies; only message in thread
From: Vladimir Mezentsev @ 2022-09-22 2:00 UTC (permalink / raw)
To: bfd-cvs, gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=90eca7111355e4c6683c1ab10fd07107ea10f6d1
commit 90eca7111355e4c6683c1ab10fd07107ea10f6d1
Author: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
Date: Wed Sep 21 13:01:06 2022 -0700
gprofng: fix -Wduplicated-cond warning
gprofng/ChangeLog
2022-09-21 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
* src/collctrl.cc: Fix -Wduplicated-cond warning.
Diff:
---
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-22 2:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-22 2:00 [binutils-gdb] 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).