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: 21.8.0-rc1~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f7a604095e02176dc5c4a7160d56bd06709e1b6;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 a78ec5e7bf061ffb20be154eaf2208d2a59dce7d) --- 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)