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
This commit is contained in:
George Joseph
2023-06-09 08:41:32 -06:00
committed by asterisk-org-access-app[bot]
parent 2645b68a08
commit 8b93cd97e8
4 changed files with 13 additions and 11 deletions

View File

@@ -1816,9 +1816,9 @@ prestart_error:
return res;
}
int ast_load_resource(const char *resource_name)
enum ast_module_load_result ast_load_resource(const char *resource_name)
{
int res;
enum ast_module_load_result res;
AST_DLLIST_LOCK(&module_list);
res = load_resource(resource_name, 0, NULL, 0, 0);
if (!res) {