talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 86fcec37b5085d309276978f527ed78314b06608
parent 2abc7b175058e182cf3e4b3fde36329497c9ff0c
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:
Mconfigure.ac | 6------
Msrc/Makefile.am | 3+++
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