]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Build: Remove the FIXME about -Werror checks
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 26 Sep 2023 16:11:20 +0000 (19:11 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 2 Feb 2025 12:30:19 +0000 (14:30 +0200)
configure.ac

index e04e11b5fa442d7387e420e262989d49fc08fe82..e651371e6926efbea8ec3492344ab2cd86367749 100644 (file)
@@ -926,13 +926,6 @@ AC_C_BIGENDIAN
 # __attribute__((__constructor__)) can be used for one-time initializations.
 # Use -Werror because some compilers accept unknown attributes and just
 # give a warning.
-#
-# FIXME? Unfortunately -Werror can cause trouble if CFLAGS contains options
-# that produce warnings for unrelated reasons. For example, GCC and Clang
-# support -Wunused-macros which will warn about "#define _GNU_SOURCE 1"
-# which will be among the #defines that Autoconf inserts to the beginning of
-# the test program. There seems to be no nice way to prevent Autoconf from
-# inserting the any defines to the test program.
 AC_MSG_CHECKING([if __attribute__((__constructor__)) can be used])
 have_func_attribute_constructor=no
 OLD_CFLAGS="$CFLAGS"