From 0821422f0282d81ca1927ce5b82cecc67a72f3b5 Mon Sep 17 00:00:00 2001 From: Leonhard Gruenschloss Date: Mon, 4 Oct 2021 11:24:51 +1100 Subject: [PATCH] Use gnu99 instead of c99, as strdup is not part of C99 --- config.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.mk b/config.mk index dfbc161..841c8fe 100755 --- a/config.mk +++ b/config.mk @@ -151,7 +151,9 @@ CPPFLAGS += -DLOCAL_BUILD CPPFLAGS += -D'DRAGEN_OS_VERSION="$(DRAGEN_OS_VERSION)"' CPPFLAGS += -DVERSION_STRING="$(VERSION_STRING)" CXXFLAGS?=-std=c++11 -CFLAGS?=-std=c99 +# Use gnu99 instead of c99, as strdup is not part of C99: +# https://stackoverflow.com/questions/26284110/strdup-confused-about-warnings-implicit-declaration-makes-pointer-with +CFLAGS?=-std=gnu99 LDFLAGS?= ifneq (,$(BOOST_INCLUDEDIR))