[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: toolchain/53618: bogus warnings from printf %u and ntohs with -O1
The following reply was made to PR toolchain/53618; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
Subject: Re: toolchain/53618: bogus warnings from printf %u and ntohs with -O1
Date: Wed, 19 Sep 2018 11:51:08 +0200
On Wed, Sep 19, 2018 at 01:28:10AM -0700, Hal Murray wrote:
> Thanks, but I don't understand what you are trying to tell me.
The warning is not bogus, it just happens to depend on various things,
starting with optimization level, but also the CPU you compile for.
The man page says:
On machines which have a byte order which is the same as the network
order, these routines are defined as macros that expand to the value of
so the behaviour is kinda expected.
Gcc warnings vary a lot depending on what optimizer passes run - hunting
that difference is like tilting windmills.
Main Index |
Thread Index |