Просмотр исходного кода

build: Add -Wc++11-compat and -Wlogical-op to the dafault warnings

Guillem Jover лет назад: 12
Родитель
Сommit
0ea126b57e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      m4/dpkg-compiler.m4

+ 2 - 2
m4/dpkg-compiler.m4

@@ -13,11 +13,11 @@ AC_DEFUN([DPKG_COMPILER_WARNINGS],
 
 WFLAGS="-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers \
 	 -Wmissing-declarations -Wmissing-format-attribute \
-	 -Wformat-security -Wpointer-arith \
+	 -Wformat-security -Wpointer-arith -Wlogical-op \
 	 -Wvla -Winit-self -Wwrite-strings -Wcast-align -Wshadow"
 WCFLAGS="-Wdeclaration-after-statement -Wnested-externs -Wbad-function-cast \
 	 -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition"
-WCXXFLAGS=""
+WCXXFLAGS="-Wc++11-compat"
 if test "x$enable_compiler_warnings" = "xyes"; then
 	if test "x$GCC" = "xyes"; then
 		CFLAGS="$WFLAGS $WCFLAGS $CFLAGS"