From: Daiki Ueno Date: Thu, 13 Aug 2020 13:56:20 +0000 (+0200) Subject: minitasn1: move WARN_CFLAGS setting to configure.ac X-Git-Tag: 3.7.0~19^2~27^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=159e94c07a629a96db32af33048f855f97858776;p=thirdparty%2Fgnutls.git minitasn1: move WARN_CFLAGS setting to configure.ac Some compilers don't support -Wno-type-limits, while they support -Wtype-limits. Signed-off-by: Daiki Ueno --- diff --git a/configure.ac b/configure.ac index a46d85d070..e50e242a73 100644 --- a/configure.ac +++ b/configure.ac @@ -522,6 +522,7 @@ if test "$gl_gcc_warnings" = yes; then nw="$nw -Wstack-protector" # Some functions cannot be protected nw="$nw -Wunsafe-loop-optimizations" # Warnings with no point nw="$nw -Wredundant-decls" # Some files cannot be compiled with that (gl_fd_to_handle) + nw="$nw -Wtype-limits" # Too many warnings in gnulib macros gl_MANYWARN_ALL_GCC([ws]) gl_MANYWARN_COMPLEMENT(ws, [$ws], [$nw]) diff --git a/lib/minitasn1/Makefile.am b/lib/minitasn1/Makefile.am index 054de9e3d3..9b6769746d 100644 --- a/lib/minitasn1/Makefile.am +++ b/lib/minitasn1/Makefile.am @@ -27,10 +27,6 @@ AM_CPPFLAGS = -DASN1_BUILDING \ -I$(builddir)/../../gl \ -I$(srcdir)/.. -# Too many warnings from gnulib macros -WARN_CFLAGS += \ - -Wno-type-limits - noinst_LTLIBRARIES = libminitasn1.la libminitasn1_la_SOURCES = libtasn1.h gstr.h int.h parser_aux.h \