]> 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)
committerGeorge Joseph <gjoseph@sangoma.com>
Fri, 9 Jun 2023 18:19:49 +0000 (18:19 +0000)
commit6c8b23a68870a107a0ebe667b3b6337d1f0f6efe
tree7fa37264084922e75a3bb1dac048ae3173c3716b
parentb3c2a9cd44fdb2da66cbdfd23b5cd6a67cdaac88
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
include/asterisk/app.h
main/loader.c
main/stasis_message.c
tests/test_utils.c