[Asterisk-code-review] main/say: Work around gcc 9 format-truncation false positive (asterisk[13])

Alexander Traud asteriskteam at digium.com
Wed Oct 28 04:53:10 CDT 2020


Alexander Traud has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/14501 )

Change subject: main/say: Work around gcc 9 format-truncation false positive
......................................................................


Patch Set 1:

So, you are (simply) using:
./configure --enable-developer-mode=noisy
OPTIMIZE=-O3 make
In other words, the Asterisk Developer Mode is on and DONT_OPTIMIZE is off in make menuselect. Do you face the issue with -Og as well or not? If you have no issues with -O0, I would not look at the output but rather at GCC itself and how it creates that False Positive.

> On amd64 regular ints ...

No, I meant I am debugging several false positives with GCC 10.2 as well, even in amd64 land. In my case, those warnings are triggered because I go for -Og; and it is just -Og. Go figure!


-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14501
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: Ic7a70120188c9aa525a6d70289385bfce878438a
Gerrit-Change-Number: 14501
Gerrit-PatchSet: 1
Gerrit-Owner: Walter Doekes <walter+asterisk at wjd.nu>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-CC: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Comment-Date: Wed, 28 Oct 2020 09:53:10 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20201028/54bf3289/attachment.html>


More information about the asterisk-code-review mailing list