[PATCH 3/3] include/aout/aout64.h: guard ARCH_SIZE with defined()
Alan Modra
amodra@gmail.com
Mon Sep 15 08:06:26 GMT 2025
On Mon, Sep 15, 2025 at 05:03:15AM +0200, Jan Beulich wrote:
> Yes, what you do fits what happens if the
> compiler silently uses 0 as value when it's undefined.
It must. See ISO/IEC 9899:1999 (E) 6.10.1 para 3. Correct programs
do not need to write "#if defined(X) && X" except to silence the
warning. Plain "#if X" is fine.
This isn't to say I oppose the patch. Fussing over warnings is OK
too. ;-)
--
Alan Modra
More information about the Binutils
mailing list