]> 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-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Fri, 9 Jun 2023 18:19:53 +0000 (18:19 +0000)
commit6b4f49c0df000ebeea1b2a1fa951c2a6a8b4a9ea
tree19524b22150fc9ebcae6a2c449a9aa430f58d1b4
parenta207fe4900b73ae7132611e310309381f42f1789
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