mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
GCC12: Fixes for 16+
Most issues were in stringfields and had to do with comparing a pointer to an constant/interned string with NULL. Since the string was a constant, a pointer to it could never be NULL so the comparison was always "true". gcc now complains about that. There were also a few issues where determining if there was enough space for a memcpy or s(n)printf which were fixed by defining some of the involved variables as "volatile". There were also a few other miscellaneous fixes. ASTERISK-30044 Change-Id: Ia081ca1bcfb329df6487c4660aaf1944309eb570
This commit is contained in:
committed by
Joshua Colp
parent
49108810d1
commit
4aa541683b
@@ -62,6 +62,10 @@ chan_ooh323.so: _ASTCFLAGS+=$(H323CFLAGS)
|
||||
$(call MOD_ADD_C,chan_ooh323,$(H323SOURCE))
|
||||
|
||||
ifneq ($(wildcard mp3/Makefile),)
|
||||
# At the current time, the fate of mp3 is in flux so it didn't make sense to
|
||||
# add configure/makeopts processing for array-bounds since this is the only
|
||||
# source file that needs that warning suppressed.
|
||||
mp3/layer3.o: _ASTCFLAGS+=-Wno-array-bounds
|
||||
$(call MOD_ADD_C,format_mp3,mp3/common.c mp3/dct64_i386.c mp3/decode_ntom.c mp3/layer3.c mp3/tabinit.c mp3/interface.c)
|
||||
|
||||
.PHONY: check_mp3
|
||||
|
Reference in New Issue
Block a user