From: Naveen Albert Date: Fri, 24 Jan 2025 01:08:23 +0000 (-0500) Subject: utils: Disable old style definition warnings for libdb. X-Git-Tag: 20.13.0-rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1ca76f0947478e2a3f223ad86185c685309eff1;p=thirdparty%2Fasterisk.git utils: Disable old style definition warnings for libdb. Newer versions of gcc now warn about old style definitions, such as those in libdb, which causes compilation failure with DEVMODE enabled. Ignore these warnings for libdb. Resolves: #1085 (cherry picked from commit 9bb081a090e929d0951aa6dbda3bc54261b9f31f) --- diff --git a/utils/Makefile b/utils/Makefile index a17a3c1d39..c5958d396c 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -182,7 +182,7 @@ streamplayer: streamplayer.o CHECK_SUBDIR: # do nothing, just make sure that we recurse in the subdir/ db1-ast/libdb1.a: CHECK_SUBDIR - _ASTCFLAGS="$(_ASTCFLAGS) -Wno-strict-aliasing" ASTCFLAGS="$(ASTCFLAGS)" $(MAKE) -C db1-ast libdb1.a + _ASTCFLAGS="$(_ASTCFLAGS) -Wno-strict-aliasing -Wno-old-style-definition" ASTCFLAGS="$(ASTCFLAGS)" $(MAKE) -C db1-ast libdb1.a astdb2sqlite3: LIBS+=$(SQLITE3_LIB) astdb2sqlite3: _ASTCFLAGS+=$(SQLITE3_INCLUDE)