[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Including config.h emits warnings from -Wundef
From: |
Tim Rühsen |
Subject: |
Including config.h emits warnings from -Wundef |
Date: |
Thu, 3 Aug 2023 17:52:29 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 |
Hi,
I just updated gnulib and recognized these warnings with every '#include
<config.h>'. Before the update there were no warnings.
../config.h:3317:34: warning: "__cplusplus" is not defined, evaluates to
0 [-Wundef]
3317 | #if !defined HAVE_C_ALIGNASOF && __cplusplus < 201103 &&
!defined alignof
| ^~~~~~~~~~~
../config.h:3318:6: warning: "HAVE_STDALIGN_H" is not defined, evaluates
to 0 [-Wundef]
3318 | # if HAVE_STDALIGN_H
| ^~~~~~~~~~~~~~~
../config.h:3415:7: warning: "HAVE_STDALIGN_H" is not defined, evaluates
to 0 [-Wundef]
3415 | # if !HAVE_STDALIGN_H
| ^~~~~~~~~~~~~~~
../config.h:3424:6: warning: "_GL_STDALIGN_NEEDS_STDDEF" is not defined,
evaluates to 0 [-Wundef]
3424 | # if _GL_STDALIGN_NEEDS_STDDEF
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Disabling -Wundef for the whole project is not my preferred solution =).
Using a #pragma around the #include is ugly and tedious (too many files
to change).
Can this be fixed in gnulib ?
Regards, Tim
OpenPGP_signature
Description: OpenPGP digital signature
- Including config.h emits warnings from -Wundef,
Tim Rühsen <=