From 055a5e33c7c1157b59396719693127d2a60120a9 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 13 Aug 2020 15:56:20 +0200 Subject: 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 --- configure.ac | 1 + lib/minitasn1/Makefile.am | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 25adba492a..df954f0209 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 \ -- cgit v1.2.1