Since new compilers has new checks (like -Wdangling-pointer), and so to
avoid extra checks in cmake/autotools, simply suppress if the pragma is
unknown.
# Disable unused-function warnings. These trigger for minheap-internal.h.
-Wno-unused-function
+
+ -Wno-pragmas
)
if (${CLANG})
dnl Disable unused-function warnings. These trigger for minheap-internal.h.
AX_CHECK_COMPILE_FLAG([-Wno-unused-function], [CFLAGS="$CFLAGS -Wno-unused-function"],[],[-Werror])
+ dnl Disable unknown pragmas warnings.
+ AX_CHECK_COMPILE_FLAG([-Wno-pragmas], [CFLAGS="$CFLAGS -Wno-pragmas"],[],[-Werror])
+
if test "$have_clang" = "yes"; then
case "$host_os" in
darwin*)