Browse Source

Fix C++ build

Apparently compiling with -x c++ does produce warnings about missing
items in designated initializers.
master
Kim Woelders 2 months ago
parent
commit
a0c24a89af
  1. 2
      m4/ec_warnflags.m4

2
m4/ec_warnflags.m4

@ -20,6 +20,8 @@ AC_DEFUN([EC_C_WARNINGS], [
CFLAGS_WARNINGS="-W -Wall -Waggregate-return -Wcast-align -Wpointer-arith -Wshadow -Wwrite-strings"
ifelse(ec_c_compile_cpp, no, [
CFLAGS_WARNINGS="$CFLAGS_WARNINGS -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes"
], [
CFLAGS_WARNINGS="$CFLAGS_WARNINGS -Wno-missing-field-initializers"
])
if test "x$enable_werror" = "xyes"; then

Loading…
Cancel
Save