Add -Wundef and fix missing definitions

This commit is contained in:
Matt Johnston
2022-11-10 10:19:12 +08:00
parent 7c9bd09af6
commit 963b9eafaa
5 changed files with 4212 additions and 2993 deletions

View File

@@ -48,6 +48,9 @@ DB_TRYADDCFLAGS([-Wno-pointer-sign])
AC_MSG_NOTICE([Checking if compiler '$CC' supports -fno-strict-overflow])
DB_TRYADDCFLAGS([-fno-strict-overflow])
AC_MSG_NOTICE([Checking if compiler '$CC' supports -Wundef])
DB_TRYADDCFLAGS([-Wundef])
# needed for various extensions. define early before autoconf tests
AC_DEFINE([_GNU_SOURCE], [], [Use GNU extensions if glibc])