Conversation
clan
commented
Jan 18, 2025
- _FORTIFY_SOURCE is defined built-in by compiler, so undefine the define to slience warnings like:
- -Wno-unknown-warning-option & -Wno-gnu-alignof-expression are available for clang only, but "-fplan9-extensions" is used which is gcc only! So remove these two warning options to avoid:
|
Where do you get |
see: SELinuxProject/selinux@4f96b32 I encoutered this warning when compilng in Gentoo Hardened profile. |
1. _FORTIFY_SOURCE is defined built-in by certian build of gcc (such as Gentoo
in Hardened profile), so undefine the define to slience warnings like:
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
2. -Wno-unknown-warning-option & -Wno-gnu-alignof-expression are
available for clang only, but "-fplan9-extensions" is used which is
gcc only! So remove these two warning options to avoid:
cc1: note: unrecognized command-line option ‘-Wno-gnu-alignof-expression’ may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
|
This PR is stale because it has been open 90 days with no activity. This PR will be closed in 30 days unless new comments are made or the stale label is removed. To skip these checks, apply the "lifecycle/frozen" label. |
|
ping |