]> git.ipfire.org Git - thirdparty/asterisk.git/commit
build: Fix a few gcc 13 issues
authorGeorge Joseph <gjoseph@sangoma.com>
Fri, 9 Jun 2023 14:41:32 +0000 (08:41 -0600)
committerAsterisk Development Team <asteriskteam@digium.com>
Mon, 10 Jul 2023 11:49:48 +0000 (11:49 +0000)
commitee09bbbb5f73e0dc9f76d0f7cdf690ecbdca7e1c
treed22a031242327cc42086cd3c0967cc32b2cb3572
parent40ff67d6364671830922ba98706e4869b132caf8
build: Fix a few gcc 13 issues

* gcc 13 is now catching when a function is declared as returning
  an enum but defined as returning an int or vice versa.  Fixed
  a few in app.h, loader.c, stasis_message.c.

* gcc 13 is also now (incorrectly) complaining of dangling pointers
  when assigning a pointer to a local char array to a char *. Had
  to change that to an ast_alloca.

Resolves: #155
(cherry picked from commit 6c8b23a68870a107a0ebe667b3b6337d1f0f6efe)
include/asterisk/app.h
main/loader.c
main/stasis_message.c
tests/test_utils.c