aboutsummaryrefslogtreecommitdiffstats
path: root/src/configure.ac
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-03-26 13:36:46 +0200
committerDamjan Marion <dmarion.lists@gmail.com>2018-03-26 13:26:00 +0000
commit74a6dab687f926373dd9843ebdabc99639b7b122 (patch)
tree2553471be9e19762ce5d804b07cc22a8135afbe0 /src/configure.ac
parente1e995db55be2fe1cb371fb6acd86ea9144da914 (diff)
Disable -Waddress-of-packed-member warnings reported by clang
Change-Id: Ic07ea5b0a7addec7b0ccfbe0570f341056e6d55b Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/configure.ac')
-rw-r--r--src/configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/configure.ac b/src/configure.ac
index 4ea7a5dfac8..dea76a874bd 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -189,6 +189,14 @@ AM_CONDITIONAL([CPU_X86_64], [test "$build_cpu" = "x86_64"])
AM_CONDITIONAL([CPU_AARCH64], [test "$build_cpu" = "aarch64"])
###############################################################################
+# misc compiler flags
+###############################################################################
+
+CC_CHECK_FLAG("-Wno-address-of-packed-member")
+AS_IF([test "$cc_flag_check" = yes],
+ [CFLAGS="${CFLAGS} -Wno-address-of-packed-member"], [])
+
+###############################################################################
# Substitutions and defines
###############################################################################