aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk/m4/configure.m4
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux-dpdk/m4/configure.m4')
-rw-r--r--platform/linux-dpdk/m4/configure.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/linux-dpdk/m4/configure.m4 b/platform/linux-dpdk/m4/configure.m4
index 1e6e8306c..aa369415c 100644
--- a/platform/linux-dpdk/m4/configure.m4
+++ b/platform/linux-dpdk/m4/configure.m4
@@ -72,6 +72,13 @@ AS_VAR_APPEND([PLAT_CFG_TEXT], ["
default_config_path: ${default_config_path}"])
ODP_CHECK_CFLAG([-Wno-error=cast-align])
+
+# Ignore Clang specific errors about fields with variable sized type not at the
+# end of a struct or usage of these structs in arrays. This style is used by
+# e.g. timer_pool_t.
+ODP_CHECK_CFLAG([-Wno-error=gnu-variable-sized-type-not-at-end])
+ODP_CHECK_CFLAG([-Wno-error=flexible-array-extensions])
+
AC_DEFINE([_ODP_PKTIO_DPDK], [1])
AC_CONFIG_COMMANDS_PRE([dnl
AM_CONDITIONAL([PLATFORM_IS_LINUX_DPDK],