]> git.ipfire.org Git - thirdparty/asterisk.git/commit
GCC12: Fixes for 16+
authorGeorge Joseph <gjoseph@digium.com>
Tue, 3 May 2022 12:57:58 +0000 (06:57 -0600)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 9 May 2022 12:49:52 +0000 (07:49 -0500)
commit3c965666554ded3e4169c3eadf84ac1f4c89b547
tree15410ca9c7c8396abd598ce082f30fdf1dae5e28
parent4fec26923e474d0efc715d2726f1165128cb0ec6
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
12 files changed:
addons/Makefile
apps/app_festival.c
channels/chan_sip.c
channels/sig_analog.c
funcs/func_scramble.c
include/asterisk/stringfields.h
include/asterisk/strings.h
main/pbx.c
main/stun.c
res/res_config_pgsql.c
res/res_tonedetect.c
tests/test_vector.c