aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/m4/configure.m4
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux-generic/m4/configure.m4')
-rw-r--r--platform/linux-generic/m4/configure.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4
index 01593baea..ffac70414 100644
--- a/platform/linux-generic/m4/configure.m4
+++ b/platform/linux-generic/m4/configure.m4
@@ -35,6 +35,11 @@ AS_VAR_APPEND([PLAT_CFG_TEXT], ["
pcapng: ${have_pcapng}
default_config_path: ${default_config_path}"])
+# Ignore Clang specific errors about fields with variable sized type not at the
+# end of a struct. This style is used by e.g. odp_packet_hdr_t and
+# odp_timeout_hdr_t.
+ODP_CHECK_CFLAG([-Wno-error=gnu-variable-sized-type-not-at-end])
+
AC_CONFIG_COMMANDS_PRE([dnl
AM_CONDITIONAL([PLATFORM_IS_LINUX_GENERIC],
[test "${with_platform}" = "linux-generic"])