|
From: | Paul Eggert |
Subject: | Re: address warnings from GCC's UB sanitizer |
Date: | Sat, 16 Mar 2019 09:21:58 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 |
Akim Demaille wrote:
Are you aware of any way to use this macro and avoid these spurious warnings?
Sure, don't use -Wtype-limits and don't use -Wtautological-constant-out-of-range-compare. That's standard practice in other GNU projects. These warnings generate too many false alarms in code that checks for integer overflow properly.
[Prev in Thread] | Current Thread | [Next in Thread] |