From 63db6bf344418f1b2a4fc10ae5e17188725f5b1f Mon Sep 17 00:00:00 2001 From: Olli Date: Sat, 25 Mar 2023 11:49:04 +0200 Subject: [PATCH] Add -Wextra -Wzero-as-null-pointer-constant to configure.ac Signed-off-by: Olli --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index edbd05f..837745e 100644 --- a/configure.ac +++ b/configure.ac @@ -33,7 +33,7 @@ AC_LANG(C++) # Compiler flags. Apply -Ofast (implies -O3 -ffast-math) to allow gcc autovectorization # generate effective SIMD code. -CXXFLAGS+=" -Ofast -Wall -Wno-unknown-pragmas" +CXXFLAGS+=" -Ofast -Wall -Wextra -Wzero-as-null-pointer-constant -Wno-unknown-pragmas" # Set AR_FLAGS to avoid build warning "ar: `u' modifier ignored since `D' is the default (see `U')" AR_FLAGS='cr'