]> 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:51:58 +0000 (07:51 -0500)
commit01dc630b8c1eebd2b125a86e9e0333e65fee1aaa
treeb2a32610cd43f2aad1dfe6d5e8b8bac3c465637e
parent1e3acba4439a79f54047ba36e1316206cc297ed7
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