summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTimothy Redaelli <tredaelli@redhat.com>2017-07-13 16:29:33 +0200
committerRussell Bryant <russell@ovn.org>2017-07-14 21:09:31 -0400
commitdd95bb5e1390f2a6e6e82208d8e4e23148de002d (patch)
treed17449c37d04b2da7f6034be68efe1dc47479d05 /configure.ac
parent8bdb2bdb1fc244185ad059d3b0c00426d7edc135 (diff)
downloadopenvswitch-dd95bb5e1390f2a6e6e82208d8e4e23148de002d.tar.gz
tests: Disable no-format-truncation warnings
test_snprintf function (tests/test-util.c) tests snprintf with shorter length, but this emit a warning on GCC 7.0 or later. This commit disables that warning on tests only. Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Acked-by: Lance Richardson <lrichard@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 23afe4c71..ab002a0a0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -169,6 +169,7 @@ OVS_ENABLE_OPTION([-Wduplicated-cond])
OVS_ENABLE_OPTION([-Qunused-arguments])
OVS_CONDITIONAL_CC_OPTION([-Wno-unused], [HAVE_WNO_UNUSED])
OVS_CONDITIONAL_CC_OPTION([-Wno-unused-parameter], [HAVE_WNO_UNUSED_PARAMETER])
+OVS_CONDITIONAL_CC_OPTION([-Wno-format-truncation], [HAVE_WNO_FORMAT_TRUNCATION])
OVS_ENABLE_WERROR
OVS_ENABLE_SPARSE
OVS_CTAGS_IDENTIFIERS