A unary minus operator was applied to an unsigned type - conversion from 64 Bit to 32 Bit

Hans Åberg haberg-1 at telia.com
Tue Sep 3 21:39:49 CEST 2024


> On 3 Sep 2024, at 19:24, Torbjörn Granlund <tg at gmplib.org> wrote:
> 
> I am not opposed to working around some false warnings.  But any such
> workaround has a cost as it makes the code readability worse.

I have a file with pragmas suppressing warnings. For example:
#pragma GCC diagnostic ignored "-Wregister"
#pragma clang diagnostic ignored "-Wlogical-op-parentheses"

The first, I believe, is to suppress use of the keyword "register" in Flex generated code. The second is for Clang promoting programming in the style of Pascal, which did not have enough of grammar precedences.




More information about the gmp-bugs mailing list