mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-04 21:04:18 +01:00
This flag is always detected as unsupported because every time autoconf is generating a test program for any feature, it puts at the beginning of the test source all the '#define' that have been detected so far, which is what we expect normally. But for this option, as we cannot reasonably make a dummy use of every macro, the warning triggers and falsely gets autoconf into thinking it does not work. This patch creates a dedicated macro (WM_CFLAGS_GCC_OPTION_UNUSEDMACROS) for this flag, which works around the problem by having no '#define' in the test source. It also adds a new macro WM_CFLAGS_GCC_OPTION_POSTPONED because if the flag works, we still cannot add it to the compilation command because it could fail all further tests done, so the macro will add it to CFLAGS only at the end. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
28 KiB
28 KiB