commit 8d0917ab4410bb66f0ccaf2fb16139cc503d55af
parent 3f99b30b0213c4258271219357382a1da33fcee6
Author: Jonathan Boeing <jonathan@claws-mail.org>
Date: Tue, 2 Nov 2021 20:42:00 -0700
Restrict -Wno-unused-function to flex generated files
Diffstat:
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -187,12 +187,6 @@ AC_MSG_RESULT([$time_t_fmt])
AC_DEFINE_UNQUOTED([CM_TIME_FORMAT], ["$time_t_fmt"],
[Define printf format specifier for time_t])
-if test "$GCC" = "yes"
-then
- CFLAGS="$CFLAGS -Wno-unused-function"
- #CFLAGS="-g -Wall -Wno-unused-function"
-fi
-
AC_MSG_CHECKING([if gcc supports -Wno-pointer-sign])
_gcc_cflags_save=$CFLAGS
CFLAGS="-Wno-pointer-sign"
diff --git a/src/Makefile.am b/src/Makefile.am
@@ -630,6 +630,9 @@ AM_CPPFLAGS = \
$(VALGRIND_CFLAGS) \
$(CONTACTS_CFLAGS)
+matcher_parser_lex.$(OBJEXT) : CFLAGS += -Wno-unused-function
+quote_fmt_lex.$(OBJEXT) : CFLAGS += -Wno-unused-function
+
#no-unused-function is there because of bison stuff
#no-deprecated-declarations because of gpgme_data_rewind, which we have
#to call inside gpgme due to our lack of LARGEFILE support