aboutsummaryrefslogtreecommitdiff
path: root/gprofng
diff options
context:
space:
mode:
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>2022-09-21 13:01:06 -0700
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>2022-09-21 19:00:00 -0700
commit90eca7111355e4c6683c1ab10fd07107ea10f6d1 (patch)
tree8e768531c6191ca8a9b703d24c63d16429633170 /gprofng
parent8cdbd5231ec096b330ef995cfd496f495e90dc32 (diff)
downloadgdb-90eca7111355e4c6683c1ab10fd07107ea10f6d1.zip
gdb-90eca7111355e4c6683c1ab10fd07107ea10f6d1.tar.gz
gdb-90eca7111355e4c6683c1ab10fd07107ea10f6d1.tar.bz2
gprofng: fix -Wduplicated-cond warning
gprofng/ChangeLog 2022-09-21 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> * src/collctrl.cc: Fix -Wduplicated-cond warning.
Diffstat (limited to 'gprofng')
-rw-r--r--gprofng/src/collctrl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gprofng/src/collctrl.cc b/gprofng/src/collctrl.cc
index 48c65ff..04e3e57 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);