From ae0fb0c432ade6e68123611733562f954e07b765 Mon Sep 17 00:00:00 2001 From: Eric Joyner Date: Thu, 2 Jan 2020 23:18:43 +0000 Subject: [PATCH] MFC r355055: Fix gcc build for bitstring_test by specifying "-fno-strict-overflow" Sponsored by: Intel Corporation --- tests/sys/sys/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/sys/sys/Makefile b/tests/sys/sys/Makefile index 3adf6b83e4e..b0c53152559 100644 --- a/tests/sys/sys/Makefile +++ b/tests/sys/sys/Makefile @@ -1,9 +1,15 @@ # $FreeBSD$ +.include + TESTSDIR= ${TESTSBASE}/sys/sys ATF_TESTS_C= bitstring_test WARNS?= 5 +.if ${COMPILER_TYPE} == "gcc" +CFLAGS.bitstring_test= -fno-strict-overflow +.endif + .include -- 2.45.0