]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
utils: Disable old style definition warnings for libdb.
authorNaveen Albert <asterisk@phreaknet.org>
Fri, 24 Jan 2025 01:08:23 +0000 (20:08 -0500)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 20 Mar 2025 18:29:21 +0000 (18:29 +0000)
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)

utils/Makefile

index a17a3c1d3992e4e4be3c52c4532b83765b432efa..c5958d396c7c69db531f1ca99b805abafe3a18a4 100644 (file)
@@ -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)