- mod_fifo.c: In function 'on_dtmf':
- mod_fifo.c:729:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int fifo_dec_use_count(const char *outbound_id)
- ^~~~~~
- mod_fifo.c:729:12: error: invalid storage class for function 'fifo_dec_use_count'
- static int fifo_dec_use_count(const char *outbound_id)
- ^~~~~~~~~~~~~~~~~~
- mod_fifo.c:729:1: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
- static int fifo_dec_use_count(const char *outbound_id)
- ^~~~~~
- mod_fifo.c:744:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int fifo_get_use_count(const char *outbound_id)
- ^~~~~~
- mod_fifo.c:744:12: error: invalid storage class for function 'fifo_get_use_count'
- static int fifo_get_use_count(const char *outbound_id)
- ^~~~~~~~~~~~~~~~~~
- mod_fifo.c:757:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int fifo_inc_use_count(const char *outbound_id)
- ^~~~~~
- mod_fifo.c:757:12: error: invalid storage class for function 'fifo_inc_use_count'
- static int fifo_inc_use_count(const char *outbound_id)
- ^~~~~~~~~~~~~~~~~~
- mod_fifo.c:774:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void fifo_init_use_count(void)
- ^~~~~~
- mod_fifo.c:774:13: error: invalid storage class for function 'fifo_init_use_count'
- static void fifo_init_use_count(void)
- ^~~~~~~~~~~~~~~~~~~
- mod_fifo.c:784:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int check_caller_outbound_call(const char *key)
- ^~~~~~
- mod_fifo.c:784:12: error: invalid storage class for function 'check_caller_outbound_call'
- static int check_caller_outbound_call(const char *key)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:796:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void add_caller_outbound_call(const char *key, switch_call_cause_t *cancel_cause)
- ^~~~~~
- mod_fifo.c:796:13: error: invalid storage class for function 'add_caller_outbound_call'
- static void add_caller_outbound_call(const char *key, switch_call_cause_t *cancel_cause)
- ^~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:805:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void del_caller_outbound_call(const char *key)
- ^~~~~~
- mod_fifo.c:805:13: error: invalid storage class for function 'del_caller_outbound_call'
- static void del_caller_outbound_call(const char *key)
- ^~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:814:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void cancel_caller_outbound_call(const char *key, switch_call_cause_t cause)
- ^~~~~~
- mod_fifo.c:814:13: error: invalid storage class for function 'cancel_caller_outbound_call'
- static void cancel_caller_outbound_call(const char *key, switch_call_cause_t cause)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:827:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int check_bridge_call(const char *key)
- ^~~~~~
- mod_fifo.c:827:12: error: invalid storage class for function 'check_bridge_call'
- static int check_bridge_call(const char *key)
- ^~~~~~~~~~~~~~~~~
- mod_fifo.c:839:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void add_bridge_call(const char *key)
- ^~~~~~
- mod_fifo.c:839:13: error: invalid storage class for function 'add_bridge_call'
- static void add_bridge_call(const char *key)
- ^~~~~~~~~~~~~~~
- mod_fifo.c:849:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void del_bridge_call(const char *key)
- ^~~~~~
- mod_fifo.c:849:13: error: invalid storage class for function 'del_bridge_call'
- static void del_bridge_call(const char *key)
- ^~~~~~~~~~~~~~~
- mod_fifo.c:856:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int check_consumer_outbound_call(const char *key)
- ^~~~~~
- mod_fifo.c:856:12: error: invalid storage class for function 'check_consumer_outbound_call'
- static int check_consumer_outbound_call(const char *key)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:868:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void add_consumer_outbound_call(const char *key, switch_call_cause_t *cancel_cause)
- ^~~~~~
- mod_fifo.c:868:13: error: invalid storage class for function 'add_consumer_outbound_call'
- static void add_consumer_outbound_call(const char *key, switch_call_cause_t *cancel_cause)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:877:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void del_consumer_outbound_call(const char *key)
- ^~~~~~
- mod_fifo.c:877:13: error: invalid storage class for function 'del_consumer_outbound_call'
- static void del_consumer_outbound_call(const char *key)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:886:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void cancel_consumer_outbound_call(const char *key, switch_call_cause_t cause)
- ^~~~~~
- mod_fifo.c:886:13: error: invalid storage class for function 'cancel_consumer_outbound_call'
- static void cancel_consumer_outbound_call(const char *key, switch_call_cause_t cause)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:899:1: error: ISO C forbids nested functions [-Werror=pedantic]
- switch_cache_db_handle_t *fifo_get_db_handle(void)
- ^~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:917:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static switch_status_t fifo_execute_sql_queued(char **sqlp, switch_bool_t sql_already_dynamic, switch_bool_t block)
- ^~~~~~
- mod_fifo.c:917:24: error: invalid storage class for function 'fifo_execute_sql_queued'
- static switch_status_t fifo_execute_sql_queued(char **sqlp, switch_bool_t sql_already_dynamic, switch_bool_t block)
- ^~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:972:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static switch_bool_t fifo_execute_sql_callback(switch_mutex_t *mutex, char *sql, switch_core_db_callback_func_t callback, void *pdata)
- ^~~~~~
- mod_fifo.c:972:22: error: invalid storage class for function 'fifo_execute_sql_callback'
- static switch_bool_t fifo_execute_sql_callback(switch_mutex_t *mutex, char *sql, switch_core_db_callback_func_t callback, void *pdata)
- ^~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:1007:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static fifo_node_t *create_node(const char *name, uint32_t importance, switch_mutex_t *mutex)
- ^~~~~~
- mod_fifo.c:1007:21: error: invalid storage class for function 'create_node'
- static fifo_node_t *create_node(const char *name, uint32_t importance, switch_mutex_t *mutex)
- ^~~~~~~~~~~
- mod_fifo.c:1059:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int node_idle_consumers(fifo_node_t *node)
- ^~~~~~
- mod_fifo.c:1059:12: error: invalid storage class for function 'node_idle_consumers'
- static int node_idle_consumers(fifo_node_t *node)
- ^~~~~~~~~~~~~~~~~~~
- mod_fifo.c:1101:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void do_unbridge(switch_core_session_t *consumer_session, switch_core_session_t *caller_session)
- ^~~~~~
- mod_fifo.c:1101:13: error: invalid storage class for function 'do_unbridge'
- static void do_unbridge(switch_core_session_t *consumer_session, switch_core_session_t *caller_session)
- ^~~~~~~~~~~
- mod_fifo.c:1188:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static switch_status_t messagehook (switch_core_session_t *session, switch_core_session_message_t *msg)
- ^~~~~~
- mod_fifo.c:1188:24: error: invalid storage class for function 'messagehook'
- static switch_status_t messagehook (switch_core_session_t *session, switch_core_session_message_t *msg)
- ^~~~~~~~~~~
- mod_fifo.c:1388:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void *SWITCH_THREAD_FUNC outbound_ringall_thread_run(switch_thread_t *thread, void *obj)
- ^~~~~~
- mod_fifo.c:1388:33: error: invalid storage class for function 'outbound_ringall_thread_run'
- static void *SWITCH_THREAD_FUNC outbound_ringall_thread_run(switch_thread_t *thread, void *obj)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:1780:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void *SWITCH_THREAD_FUNC outbound_enterprise_thread_run(switch_thread_t *thread, void *obj)
- ^~~~~~
- mod_fifo.c:1780:33: error: invalid storage class for function 'outbound_enterprise_thread_run'
- static void *SWITCH_THREAD_FUNC outbound_enterprise_thread_run(switch_thread_t *thread, void *obj)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:1933:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int place_call_ringall_callback(void *pArg, int argc, char **argv, char **columnNames)
- ^~~~~~
- mod_fifo.c:1933:12: error: invalid storage class for function 'place_call_ringall_callback'
- static int place_call_ringall_callback(void *pArg, int argc, char **argv, char **columnNames)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:1960:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int place_call_enterprise_callback(void *pArg, int argc, char **argv, char **columnNames)
- ^~~~~~
- mod_fifo.c:1960:12: error: invalid storage class for function 'place_call_enterprise_callback'
- static int place_call_enterprise_callback(void *pArg, int argc, char **argv, char **columnNames)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:2014:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int find_consumers(fifo_node_t *node)
- ^~~~~~
- mod_fifo.c:2014:12: error: invalid storage class for function 'find_consumers'
- static int find_consumers(fifo_node_t *node)
- ^~~~~~~~~~~~~~
- mod_fifo.c:2095:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void *SWITCH_THREAD_FUNC node_thread_run(switch_thread_t *thread, void *obj)
- ^~~~~~
- mod_fifo.c:2095:33: error: invalid storage class for function 'node_thread_run'
- static void *SWITCH_THREAD_FUNC node_thread_run(switch_thread_t *thread, void *obj)
- ^~~~~~~~~~~~~~~
- mod_fifo.c:2191:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void start_node_thread(switch_memory_pool_t *pool)
- ^~~~~~
- mod_fifo.c:2191:13: error: invalid storage class for function 'start_node_thread'
- static void start_node_thread(switch_memory_pool_t *pool)
- ^~~~~~~~~~~~~~~~~
- mod_fifo.c:2201:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int stop_node_thread(void)
- ^~~~~~
- mod_fifo.c:2201:12: error: invalid storage class for function 'stop_node_thread'
- static int stop_node_thread(void)
- ^~~~~~~~~~~~~~~~
- mod_fifo.c:2211:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void check_cancel(fifo_node_t *node)
- ^~~~~~
- mod_fifo.c:2211:13: error: invalid storage class for function 'check_cancel'
- static void check_cancel(fifo_node_t *node)
- ^~~~~~~~~~~~
- mod_fifo.c:2229:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void send_presence(fifo_node_t *node)
- ^~~~~~
- mod_fifo.c:2229:13: error: invalid storage class for function 'send_presence'
- static void send_presence(fifo_node_t *node)
- ^~~~~~~~~~~~~
- mod_fifo.c:2267:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void pres_event_handler(switch_event_t *event)
- ^~~~~~
- mod_fifo.c:2267:13: error: invalid storage class for function 'pres_event_handler'
- static void pres_event_handler(switch_event_t *event)
- ^~~~~~~~~~~~~~~~~~
- mod_fifo.c:2310:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static uint32_t fifo_add_outbound(const char *node_name, const char *url, uint32_t priority)
- ^~~~~~
- mod_fifo.c:2310:17: error: invalid storage class for function 'fifo_add_outbound'
- static uint32_t fifo_add_outbound(const char *node_name, const char *url, uint32_t priority)
- ^~~~~~~~~~~~~~~~~
- In file included from ../../../../src/include/switch.h:113:0,
- from mod_fifo.c:32:
- ../../../../src/include/switch_types.h:2470:35: error: ISO C forbids nested functions [-Werror=pedantic]
- #define SWITCH_STANDARD_API(name) static switch_status_t name (_In_opt_z_ const char *cmd, _In_opt_ switch_core_session_t *session, _In_ switch_stream_handle_t *stream)
- ^
- mod_fifo.c:2345:1: note: in expansion of macro 'SWITCH_STANDARD_API'
- SWITCH_STANDARD_API(fifo_check_bridge_function)
- ^~~~~~~~~~~~~~~~~~~
- mod_fifo.c:2345:21: error: invalid storage class for function 'fifo_check_bridge_function'
- SWITCH_STANDARD_API(fifo_check_bridge_function)
- ^
- ../../../../src/include/switch_types.h:2470:58: note: in definition of macro 'SWITCH_STANDARD_API'
- #define SWITCH_STANDARD_API(name) static switch_status_t name (_In_opt_z_ const char *cmd, _In_opt_ switch_core_session_t *session, _In_ switch_stream_handle_t *stream)
- ^~~~
- ../../../../src/include/switch_types.h:2470:35: error: ISO C forbids nested functions [-Werror=pedantic]
- #define SWITCH_STANDARD_API(name) static switch_status_t name (_In_opt_z_ const char *cmd, _In_opt_ switch_core_session_t *session, _In_ switch_stream_handle_t *stream)
- ^
- mod_fifo.c:2352:1: note: in expansion of macro 'SWITCH_STANDARD_API'
- SWITCH_STANDARD_API(fifo_add_outbound_function)
- ^~~~~~~~~~~~~~~~~~~
- mod_fifo.c:2352:21: error: invalid storage class for function 'fifo_add_outbound_function'
- SWITCH_STANDARD_API(fifo_add_outbound_function)
- ^
- ../../../../src/include/switch_types.h:2470:58: note: in definition of macro 'SWITCH_STANDARD_API'
- #define SWITCH_STANDARD_API(name) static switch_status_t name (_In_opt_z_ const char *cmd, _In_opt_ switch_core_session_t *session, _In_ switch_stream_handle_t *stream)
- ^~~~
- mod_fifo.c:2387:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void dec_use_count(switch_core_session_t *session, const char *type)
- ^~~~~~
- mod_fifo.c:2387:13: error: invalid storage class for function 'dec_use_count'
- static void dec_use_count(switch_core_session_t *session, const char *type)
- ^~~~~~~~~~~~~
- mod_fifo.c:2441:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static switch_status_t hanguphook(switch_core_session_t *session)
- ^~~~~~
- mod_fifo.c:2441:24: error: invalid storage class for function 'hanguphook'
- static switch_status_t hanguphook(switch_core_session_t *session)
- ^~~~~~~~~~
- In file included from ../../../../src/include/switch.h:113:0,
- from mod_fifo.c:32:
- ../../../../src/include/switch_types.h:2444:35: error: ISO C forbids nested functions [-Werror=pedantic]
- #define SWITCH_STANDARD_APP(name) static void name (switch_core_session_t *session, const char *data)
- ^
- mod_fifo.c:2455:1: note: in expansion of macro 'SWITCH_STANDARD_APP'
- SWITCH_STANDARD_APP(fifo_track_call_function)
- ^~~~~~~~~~~~~~~~~~~
- mod_fifo.c:2455:21: error: invalid storage class for function 'fifo_track_call_function'
- SWITCH_STANDARD_APP(fifo_track_call_function)
- ^
- ../../../../src/include/switch_types.h:2444:47: note: in definition of macro 'SWITCH_STANDARD_APP'
- #define SWITCH_STANDARD_APP(name) static void name (switch_core_session_t *session, const char *data)
- ^~~~
- mod_fifo.c:2518:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void fifo_caller_add(fifo_node_t *node, switch_core_session_t *session)
- ^~~~~~
- mod_fifo.c:2518:13: error: invalid storage class for function 'fifo_caller_add'
- static void fifo_caller_add(fifo_node_t *node, switch_core_session_t *session)
- ^~~~~~~~~~~~~~~
- mod_fifo.c:2534:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void fifo_caller_del(const char *uuid)
- ^~~~~~
- mod_fifo.c:2534:13: error: invalid storage class for function 'fifo_caller_del'
- static void fifo_caller_del(const char *uuid)
- ^~~~~~~~~~~~~~~
- In file included from ../../../../src/include/switch.h:113:0,
- from mod_fifo.c:32:
- ../../../../src/include/switch_types.h:2444:35: error: ISO C forbids nested functions [-Werror=pedantic]
- #define SWITCH_STANDARD_APP(name) static void name (switch_core_session_t *session, const char *data)
- ^
- mod_fifo.c:2555:1: note: in expansion of macro 'SWITCH_STANDARD_APP'
- SWITCH_STANDARD_APP(fifo_function)
- ^~~~~~~~~~~~~~~~~~~
- mod_fifo.c:2555:21: error: invalid storage class for function 'fifo_function'
- SWITCH_STANDARD_APP(fifo_function)
- ^
- ../../../../src/include/switch_types.h:2444:47: note: in definition of macro 'SWITCH_STANDARD_APP'
- #define SWITCH_STANDARD_APP(name) static void name (switch_core_session_t *session, const char *data)
- ^~~~
- mod_fifo.c:3696:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int xml_callback(void *pArg, int argc, char **argv, char **columnNames)
- ^~~~~~
- mod_fifo.c:3696:12: error: invalid storage class for function 'xml_callback'
- static int xml_callback(void *pArg, int argc, char **argv, char **columnNames)
- ^~~~~~~~~~~~
- mod_fifo.c:3794:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int xml_outbound(switch_xml_t xml, fifo_node_t *node, char *container, char *tag, int cc_off, int verbose)
- ^~~~~~
- mod_fifo.c:3794:12: error: invalid storage class for function 'xml_outbound'
- static int xml_outbound(switch_xml_t xml, fifo_node_t *node, char *container, char *tag, int cc_off, int verbose)
- ^~~~~~~~~~~~
- mod_fifo.c:3836:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int xml_bridge_callback(void *pArg, int argc, char **argv, char **columnNames)
- ^~~~~~
- mod_fifo.c:3836:12: error: invalid storage class for function 'xml_bridge_callback'
- static int xml_bridge_callback(void *pArg, int argc, char **argv, char **columnNames)
- ^~~~~~~~~~~~~~~~~~~
- mod_fifo.c:3901:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int xml_bridges(switch_xml_t xml, fifo_node_t *node, char *container, char *tag, int cc_off, int verbose)
- ^~~~~~
- mod_fifo.c:3901:12: error: invalid storage class for function 'xml_bridges'
- static int xml_bridges(switch_xml_t xml, fifo_node_t *node, char *container, char *tag, int cc_off, int verbose)
- ^~~~~~~~~~~
- mod_fifo.c:3925:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int xml_hash(switch_xml_t xml, switch_hash_t *hash, char *container, char *tag, int cc_off, int verbose)
- ^~~~~~
- mod_fifo.c:3925:12: error: invalid storage class for function 'xml_hash'
- static int xml_hash(switch_xml_t xml, switch_hash_t *hash, char *container, char *tag, int cc_off, int verbose)
- ^~~~~~~~
- mod_fifo.c:3986:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static int xml_caller(switch_xml_t xml, fifo_node_t *node, char *container, char *tag, int cc_off, int verbose)
- ^~~~~~
- mod_fifo.c:3986:12: error: invalid storage class for function 'xml_caller'
- static int xml_caller(switch_xml_t xml, fifo_node_t *node, char *container, char *tag, int cc_off, int verbose)
- ^~~~~~~~~~
- mod_fifo.c:4071:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void list_node(fifo_node_t *node, switch_xml_t x_report, int *off, int verbose)
- ^~~~~~
- mod_fifo.c:4071:13: error: invalid storage class for function 'list_node'
- static void list_node(fifo_node_t *node, switch_xml_t x_report, int *off, int verbose)
- ^~~~~~~~~
- mod_fifo.c:4114:1: error: ISO C forbids nested functions [-Werror=pedantic]
- void dump_hash(switch_hash_t *hash, switch_stream_handle_t *stream)
- ^~~~
- mod_fifo.c:4128:1: error: ISO C forbids nested functions [-Werror=pedantic]
- void node_dump(switch_stream_handle_t *stream)
- ^~~~
- In file included from ../../../../src/include/switch.h:113:0,
- from mod_fifo.c:32:
- ../../../../src/include/switch_types.h:2470:35: error: ISO C forbids nested functions [-Werror=pedantic]
- #define SWITCH_STANDARD_API(name) static switch_status_t name (_In_opt_z_ const char *cmd, _In_opt_ switch_core_session_t *session, _In_ switch_stream_handle_t *stream)
- ^
- mod_fifo.c:4172:1: note: in expansion of macro 'SWITCH_STANDARD_API'
- SWITCH_STANDARD_API(fifo_api_function)
- ^~~~~~~~~~~~~~~~~~~
- mod_fifo.c:4172:21: error: invalid storage class for function 'fifo_api_function'
- SWITCH_STANDARD_API(fifo_api_function)
- ^
- ../../../../src/include/switch_types.h:2470:58: note: in definition of macro 'SWITCH_STANDARD_API'
- #define SWITCH_STANDARD_API(name) static switch_status_t name (_In_opt_z_ const char *cmd, _In_opt_ switch_core_session_t *session, _In_ switch_stream_handle_t *stream)
- ^~~~
- mod_fifo.c:4369:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void extract_fifo_outbound_uuid(char *string, char *uuid, switch_size_t len)
- ^~~~~~
- mod_fifo.c:4369:13: error: invalid storage class for function 'extract_fifo_outbound_uuid'
- static void extract_fifo_outbound_uuid(char *string, char *uuid, switch_size_t len)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:4386:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static switch_status_t read_config_file(switch_xml_t *xml, switch_xml_t *cfg) {
- ^~~~~~
- mod_fifo.c:4386:24: error: invalid storage class for function 'read_config_file'
- static switch_status_t read_config_file(switch_xml_t *xml, switch_xml_t *cfg) {
- ^~~~~~~~~~~~~~~~
- mod_fifo.c:4443:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static switch_status_t load_config(int reload, int del_all)
- ^~~~~~
- mod_fifo.c:4443:24: error: invalid storage class for function 'load_config'
- static switch_status_t load_config(int reload, int del_all)
- ^~~~~~~~~~~
- mod_fifo.c:4670:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void fifo_member_add(char *fifo_name, char *originate_string, int simo_count, int timeout, int lag, time_t expires, int taking_calls)
- ^~~~~~
- mod_fifo.c:4670:13: error: invalid storage class for function 'fifo_member_add'
- static void fifo_member_add(char *fifo_name, char *originate_string, int simo_count, int timeout, int lag, time_t expires, int taking_calls)
- ^~~~~~~~~~~~~~~
- mod_fifo.c:4725:1: error: ISO C forbids nested functions [-Werror=pedantic]
- static void fifo_member_del(char *fifo_name, char *originate_string)
- ^~~~~~
- mod_fifo.c:4725:13: error: invalid storage class for function 'fifo_member_del'
- static void fifo_member_del(char *fifo_name, char *originate_string)
- ^~~~~~~~~~~~~~~
- In file included from ../../../../src/include/switch.h:113:0,
- from mod_fifo.c:32:
- ../../../../src/include/switch_types.h:2470:35: error: ISO C forbids nested functions [-Werror=pedantic]
- #define SWITCH_STANDARD_API(name) static switch_status_t name (_In_opt_z_ const char *cmd, _In_opt_ switch_core_session_t *session, _In_ switch_stream_handle_t *stream)
- ^
- mod_fifo.c:4766:1: note: in expansion of macro 'SWITCH_STANDARD_API'
- SWITCH_STANDARD_API(fifo_member_api_function)
- ^~~~~~~~~~~~~~~~~~~
- mod_fifo.c:4766:21: error: invalid storage class for function 'fifo_member_api_function'
- SWITCH_STANDARD_API(fifo_member_api_function)
- ^
- ../../../../src/include/switch_types.h:2470:58: note: in definition of macro 'SWITCH_STANDARD_API'
- #define SWITCH_STANDARD_API(name) static switch_status_t name (_In_opt_z_ const char *cmd, _In_opt_ switch_core_session_t *session, _In_ switch_stream_handle_t *stream)
- ^~~~
- ../../../../src/include/switch_types.h:2577:43: error: ISO C forbids nested functions [-Werror=pedantic]
- #define SWITCH_MODULE_LOAD_FUNCTION(name) switch_status_t name SWITCH_MODULE_LOAD_ARGS
- ^
- mod_fifo.c:4848:1: note: in expansion of macro 'SWITCH_MODULE_LOAD_FUNCTION'
- SWITCH_MODULE_LOAD_FUNCTION(mod_fifo_load)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- ../../../../src/include/switch_types.h:2579:47: error: ISO C forbids nested functions [-Werror=pedantic]
- #define SWITCH_MODULE_SHUTDOWN_FUNCTION(name) switch_status_t name SWITCH_MODULE_SHUTDOWN_ARGS
- ^
- mod_fifo.c:4918:1: note: in expansion of macro 'SWITCH_MODULE_SHUTDOWN_FUNCTION'
- SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_fifo_shutdown)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:4971:1: error: expected declaration or statement at end of input
- }
- ^
- mod_fifo.c: At top level:
- mod_fifo.c:117:24: error: 'load_config' used but never defined [-Werror]
- static switch_status_t load_config(int reload, int del_all);
- ^~~~~~~~~~~
- mod_fifo.c:150:12: error: 'check_caller_outbound_call' used but never defined [-Werror]
- static int check_caller_outbound_call(const char *key);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:151:13: error: 'add_caller_outbound_call' declared 'static' but never defined [-Werror=unused-function]
- static void add_caller_outbound_call(const char *key, switch_call_cause_t *cancel_cause);
- ^~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:152:13: error: 'del_caller_outbound_call' declared 'static' but never defined [-Werror=unused-function]
- static void del_caller_outbound_call(const char *key);
- ^~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:153:13: error: 'cancel_caller_outbound_call' declared 'static' but never defined [-Werror=unused-function]
- static void cancel_caller_outbound_call(const char *key, switch_call_cause_t cause);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:154:12: error: 'check_consumer_outbound_call' declared 'static' but never defined [-Werror=unused-function]
- static int check_consumer_outbound_call(const char *key);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:155:13: error: 'add_consumer_outbound_call' declared 'static' but never defined [-Werror=unused-function]
- static void add_consumer_outbound_call(const char *key, switch_call_cause_t *cancel_cause);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:156:13: error: 'del_consumer_outbound_call' declared 'static' but never defined [-Werror=unused-function]
- static void del_consumer_outbound_call(const char *key);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:157:13: error: 'cancel_consumer_outbound_call' declared 'static' but never defined [-Werror=unused-function]
- static void cancel_consumer_outbound_call(const char *key, switch_call_cause_t cause);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- mod_fifo.c:159:12: error: 'check_bridge_call' declared 'static' but never defined [-Werror=unused-function]
- static int check_bridge_call(const char *key);
- ^~~~~~~~~~~~~~~~~
- mod_fifo.c:160:13: error: 'add_bridge_call' declared 'static' but never defined [-Werror=unused-function]
- static void add_bridge_call(const char *key);
- ^~~~~~~~~~~~~~~
- mod_fifo.c:161:13: error: 'del_bridge_call' declared 'static' but never defined [-Werror=unused-function]
- static void del_bridge_call(const char *key);
- ^~~~~~~~~~~~~~~
- mod_fifo.c:415:13: error: 'fifo_caller_add' declared 'static' but never defined [-Werror=unused-function]
- static void fifo_caller_add(fifo_node_t *node, switch_core_session_t *session);
- ^~~~~~~~~~~~~~~
- mod_fifo.c:416:13: error: 'fifo_caller_del' used but never defined [-Werror]
- static void fifo_caller_del(const char *uuid);
- ^~~~~~~~~~~~~~~
- In file included from ../../../../src/include/switch.h:113:0,
- from mod_fifo.c:32:
- mod_fifo.c:4918:33: error: 'mod_fifo_shutdown' defined but not used [-Werror=unused-function]
- SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_fifo_shutdown)
- ^
- ../../../../src/include/switch_types.h:2579:63: note: in definition of macro 'SWITCH_MODULE_SHUTDOWN_FUNCTION'
- #define SWITCH_MODULE_SHUTDOWN_FUNCTION(name) switch_status_t name SWITCH_MODULE_SHUTDOWN_ARGS
- ^~~~
- mod_fifo.c:4848:29: error: 'mod_fifo_load' defined but not used [-Werror=unused-function]
- SWITCH_MODULE_LOAD_FUNCTION(mod_fifo_load)
- ^
- ../../../../src/include/switch_types.h:2577:59: note: in definition of macro 'SWITCH_MODULE_LOAD_FUNCTION'
- #define SWITCH_MODULE_LOAD_FUNCTION(name) switch_status_t name SWITCH_MODULE_LOAD_ARGS
- ^~~~
- mod_fifo.c:784:12: error: 'check_caller_outbound_call' defined but not used [-Werror=unused-function]
- static int check_caller_outbound_call(const char *key)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- cc1: all warnings being treated as errors
- Makefile:703: recipe for target 'mod_fifo_la-mod_fifo.lo' failed
- make[4]: *** [mod_fifo_la-mod_fifo.lo] Error 1
- make[4]: Leaving directory '/drone/src/src/mod/applications/mod_fifo'
- Makefile:705: recipe for target 'mod_fifo-all' failed
- make[3]: *** [mod_fifo-all] Error 1