[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#766: 23.0.60; interesting warning during compilation

From: Peter Dyballa
Subject: bug#766: 23.0.60; interesting warning during compilation
Date: Sun, 24 Aug 2008 09:27:16 +0200

Am 24.08.2008 um 05:13 schrieb Eli Zaretskii:

If you mean with sizeof, then the problem is that sizeof is not a
preprocessing-time operator, so it cannot prevent the compiler from
seeing the offending code.

You mean

        if (sizeof (s.st_ino) > 4)

introducing the shift operation will fail to keep the compiler from emitting the warning?

Anyway, I think Andreas Schwab's proposition to split the one wide shift into two shorter ones is better. And the original code relies on an undefined behaviour of every compiler, which might change.



No project was ever completed on time and within budget.
                                – Cheops Law

reply via email to

[Prev in Thread] Current Thread [Next in Thread]