Skip to content

Commit 80f7b6a

Browse files
committed
build: raise the warning level to -Wall -Wextra
unused-parameter and missing-field-initializers stay disabled (callback signatures, zero-initialized operation tables); stringop-truncation is disabled for GCC as configure already did with --enable-warning-as-error.
1 parent a539422 commit 80f7b6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ dnl Update flags
469469
dnl Sets CFLAGS to force optimization and debugging options, which isn't quite kosher
470470
dnl
471471
AM_CPPFLAGS="-D_GNU_SOURCE -I\$(top_srcdir)/src -DLTFS_CONFIG_FILE='\"${sysconfdir}/ltfs.conf\"' -DLTFS_BASE_DIR='\"${prefix}\"'"
472-
AM_CFLAGS="-Wall -Wsign-compare -fsigned-char ${FUSE_MODULE_CFLAGS} ${UUID_MODULE_CFLAGS} ${LIBXML2_MODULE_CFLAGS} ${ICU_MODULE_CFLAGS} ${SNMP_ENABLE} ${SNMP_MODULE_CFLAGS}"
472+
AM_CFLAGS="${AM_CFLAGS} -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wsign-compare -fsigned-char ${FUSE_MODULE_CFLAGS} ${UUID_MODULE_CFLAGS} ${LIBXML2_MODULE_CFLAGS} ${ICU_MODULE_CFLAGS} ${SNMP_ENABLE} ${SNMP_MODULE_CFLAGS}"
473473

474474
if test "x$use_fast" = "xyes"
475475
then
@@ -529,7 +529,7 @@ then
529529
SSE42=yes
530530
fi
531531

532-
if test ${GCC_VERSION_MAJOR} -ge 8 -a ${GCC_VERSION_MINOR} -ge 0 -a "x$warning_as_error" = "xyes"
532+
if test ${GCC_VERSION_MAJOR} -ge 8
533533
then
534534
AM_CFLAGS="${AM_CFLAGS} -Wno-stringop-truncation"
535535
fi

0 commit comments

Comments
 (0)