bug in gprofng
Vladimir Mezentsev
vladimir.mezentsev@oracle.com
Thu Sep 22 02:29:09 GMT 2022
Hi David,
Thanks for finding this.
I just pushed my fix to the master branch.
-Vladimir
On 9/21/22 00:46, David Binderman wrote:
> Hello there Vladimir,
>
> I just did a build of recent binutils with recent gcc. It said:
>
> gprofng/src/collctrl.cc:763:12: warning: duplicated ‘if’ condition [-Wduplicated-cond]
>
> Source code is
>
> if (synctrace_thresh < 0)
> *p++ = strdup ("calibrate");
> else if (synctrace_thresh < 0)
> *p++ = strdup ("all");
>
> Suggest code rework.
>
> Regards
>
> David Binderman
More information about the Binutils
mailing list