]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
minitasn1: move WARN_CFLAGS setting to configure.ac
authorDaiki Ueno <ueno@gnu.org>
Thu, 13 Aug 2020 13:56:20 +0000 (15:56 +0200)
committerDaiki Ueno <ueno@gnu.org>
Thu, 13 Aug 2020 13:56:20 +0000 (15:56 +0200)
Some compilers don't support -Wno-type-limits, while they support
-Wtype-limits.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
configure.ac
lib/minitasn1/Makefile.am

index a46d85d07018b3e86320b73678161068e3ff14b8..e50e242a73de6acc3f0270ccfc608ced8f93f740 100644 (file)
@@ -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])
index 054de9e3d31dc88db7d4d5090b3e355b97d9f457..9b6769746de4717ec99b85169721bf1ee9e72d62 100644 (file)
@@ -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         \