From Mustard Gibbon, 4 Years ago, written in Plain Text.
- view diff
Embed
  1. mod_fifo.c: In function 'on_dtmf':
  2. mod_fifo.c:729:1: error: ISO C forbids nested functions [-Werror=pedantic]
  3.  static int fifo_dec_use_count(const char *outbound_id)
  4.  ^~~~~~
  5. mod_fifo.c:729:12: error: invalid storage class for function 'fifo_dec_use_count'
  6.  static int fifo_dec_use_count(const char *outbound_id)
  7.             ^~~~~~~~~~~~~~~~~~
  8. mod_fifo.c:729:1: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
  9.  static int fifo_dec_use_count(const char *outbound_id)
  10.  ^~~~~~
  11. mod_fifo.c:744:1: error: ISO C forbids nested functions [-Werror=pedantic]
  12.  static int fifo_get_use_count(const char *outbound_id)
  13.  ^~~~~~
  14. mod_fifo.c:744:12: error: invalid storage class for function 'fifo_get_use_count'
  15.  static int fifo_get_use_count(const char *outbound_id)
  16.             ^~~~~~~~~~~~~~~~~~
  17. mod_fifo.c:757:1: error: ISO C forbids nested functions [-Werror=pedantic]
  18.  static int fifo_inc_use_count(const char *outbound_id)
  19.  ^~~~~~
  20. mod_fifo.c:757:12: error: invalid storage class for function 'fifo_inc_use_count'
  21.  static int fifo_inc_use_count(const char *outbound_id)
  22.             ^~~~~~~~~~~~~~~~~~
  23. mod_fifo.c:774:1: error: ISO C forbids nested functions [-Werror=pedantic]
  24.  static void fifo_init_use_count(void)
  25.  ^~~~~~
  26. mod_fifo.c:774:13: error: invalid storage class for function 'fifo_init_use_count'
  27.  static void fifo_init_use_count(void)
  28.              ^~~~~~~~~~~~~~~~~~~
  29. mod_fifo.c:784:1: error: ISO C forbids nested functions [-Werror=pedantic]
  30.  static int check_caller_outbound_call(const char *key)
  31.  ^~~~~~
  32. mod_fifo.c:784:12: error: invalid storage class for function 'check_caller_outbound_call'
  33.  static int check_caller_outbound_call(const char *key)
  34.             ^~~~~~~~~~~~~~~~~~~~~~~~~~
  35. mod_fifo.c:796:1: error: ISO C forbids nested functions [-Werror=pedantic]
  36.  static void add_caller_outbound_call(const char *key, switch_call_cause_t *cancel_cause)
  37.  ^~~~~~
  38. mod_fifo.c:796:13: error: invalid storage class for function 'add_caller_outbound_call'
  39.  static void add_caller_outbound_call(const char *key, switch_call_cause_t *cancel_cause)
  40.              ^~~~~~~~~~~~~~~~~~~~~~~~
  41. mod_fifo.c:805:1: error: ISO C forbids nested functions [-Werror=pedantic]
  42.  static void del_caller_outbound_call(const char *key)
  43.  ^~~~~~
  44. mod_fifo.c:805:13: error: invalid storage class for function 'del_caller_outbound_call'
  45.  static void del_caller_outbound_call(const char *key)
  46.              ^~~~~~~~~~~~~~~~~~~~~~~~
  47. mod_fifo.c:814:1: error: ISO C forbids nested functions [-Werror=pedantic]
  48.  static void cancel_caller_outbound_call(const char *key, switch_call_cause_t cause)
  49.  ^~~~~~
  50. mod_fifo.c:814:13: error: invalid storage class for function 'cancel_caller_outbound_call'
  51.  static void cancel_caller_outbound_call(const char *key, switch_call_cause_t cause)
  52.              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  53. mod_fifo.c:827:1: error: ISO C forbids nested functions [-Werror=pedantic]
  54.  static int check_bridge_call(const char *key)
  55.  ^~~~~~
  56. mod_fifo.c:827:12: error: invalid storage class for function 'check_bridge_call'
  57.  static int check_bridge_call(const char *key)
  58.             ^~~~~~~~~~~~~~~~~
  59. mod_fifo.c:839:1: error: ISO C forbids nested functions [-Werror=pedantic]
  60.  static void add_bridge_call(const char *key)
  61.  ^~~~~~
  62. mod_fifo.c:839:13: error: invalid storage class for function 'add_bridge_call'
  63.  static void add_bridge_call(const char *key)
  64.              ^~~~~~~~~~~~~~~
  65. mod_fifo.c:849:1: error: ISO C forbids nested functions [-Werror=pedantic]
  66.  static void del_bridge_call(const char *key)
  67.  ^~~~~~
  68. mod_fifo.c:849:13: error: invalid storage class for function 'del_bridge_call'
  69.  static void del_bridge_call(const char *key)
  70.              ^~~~~~~~~~~~~~~
  71. mod_fifo.c:856:1: error: ISO C forbids nested functions [-Werror=pedantic]
  72.  static int check_consumer_outbound_call(const char *key)
  73.  ^~~~~~
  74. mod_fifo.c:856:12: error: invalid storage class for function 'check_consumer_outbound_call'
  75.  static int check_consumer_outbound_call(const char *key)
  76.             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  77. mod_fifo.c:868:1: error: ISO C forbids nested functions [-Werror=pedantic]
  78.  static void add_consumer_outbound_call(const char *key, switch_call_cause_t *cancel_cause)
  79.  ^~~~~~
  80. mod_fifo.c:868:13: error: invalid storage class for function 'add_consumer_outbound_call'
  81.  static void add_consumer_outbound_call(const char *key, switch_call_cause_t *cancel_cause)
  82.              ^~~~~~~~~~~~~~~~~~~~~~~~~~
  83. mod_fifo.c:877:1: error: ISO C forbids nested functions [-Werror=pedantic]
  84.  static void del_consumer_outbound_call(const char *key)
  85.  ^~~~~~
  86. mod_fifo.c:877:13: error: invalid storage class for function 'del_consumer_outbound_call'
  87.  static void del_consumer_outbound_call(const char *key)
  88.              ^~~~~~~~~~~~~~~~~~~~~~~~~~
  89. mod_fifo.c:886:1: error: ISO C forbids nested functions [-Werror=pedantic]
  90.  static void cancel_consumer_outbound_call(const char *key, switch_call_cause_t cause)
  91.  ^~~~~~
  92. mod_fifo.c:886:13: error: invalid storage class for function 'cancel_consumer_outbound_call'
  93.  static void cancel_consumer_outbound_call(const char *key, switch_call_cause_t cause)
  94.              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  95. mod_fifo.c:899:1: error: ISO C forbids nested functions [-Werror=pedantic]
  96.  switch_cache_db_handle_t *fifo_get_db_handle(void)
  97.  ^~~~~~~~~~~~~~~~~~~~~~~~
  98. mod_fifo.c:917:1: error: ISO C forbids nested functions [-Werror=pedantic]
  99.  static switch_status_t fifo_execute_sql_queued(char **sqlp, switch_bool_t sql_already_dynamic, switch_bool_t block)
  100.  ^~~~~~
  101. mod_fifo.c:917:24: error: invalid storage class for function 'fifo_execute_sql_queued'
  102.  static switch_status_t fifo_execute_sql_queued(char **sqlp, switch_bool_t sql_already_dynamic, switch_bool_t block)
  103.                         ^~~~~~~~~~~~~~~~~~~~~~~
  104. mod_fifo.c:972:1: error: ISO C forbids nested functions [-Werror=pedantic]
  105.  static switch_bool_t fifo_execute_sql_callback(switch_mutex_t *mutex, char *sql, switch_core_db_callback_func_t callback, void *pdata)
  106.  ^~~~~~
  107. mod_fifo.c:972:22: error: invalid storage class for function 'fifo_execute_sql_callback'
  108.  static switch_bool_t fifo_execute_sql_callback(switch_mutex_t *mutex, char *sql, switch_core_db_callback_func_t callback, void *pdata)
  109.                       ^~~~~~~~~~~~~~~~~~~~~~~~~
  110. mod_fifo.c:1007:1: error: ISO C forbids nested functions [-Werror=pedantic]
  111.  static fifo_node_t *create_node(const char *name, uint32_t importance, switch_mutex_t *mutex)
  112.  ^~~~~~
  113. mod_fifo.c:1007:21: error: invalid storage class for function 'create_node'
  114.  static fifo_node_t *create_node(const char *name, uint32_t importance, switch_mutex_t *mutex)
  115.                      ^~~~~~~~~~~
  116. mod_fifo.c:1059:1: error: ISO C forbids nested functions [-Werror=pedantic]
  117.  static int node_idle_consumers(fifo_node_t *node)
  118.  ^~~~~~
  119. mod_fifo.c:1059:12: error: invalid storage class for function 'node_idle_consumers'
  120.  static int node_idle_consumers(fifo_node_t *node)
  121.             ^~~~~~~~~~~~~~~~~~~
  122. mod_fifo.c:1101:1: error: ISO C forbids nested functions [-Werror=pedantic]
  123.  static void do_unbridge(switch_core_session_t *consumer_session, switch_core_session_t *caller_session)
  124.  ^~~~~~
  125. mod_fifo.c:1101:13: error: invalid storage class for function 'do_unbridge'
  126.  static void do_unbridge(switch_core_session_t *consumer_session, switch_core_session_t *caller_session)
  127.              ^~~~~~~~~~~
  128. mod_fifo.c:1188:1: error: ISO C forbids nested functions [-Werror=pedantic]
  129.  static switch_status_t messagehook (switch_core_session_t *session, switch_core_session_message_t *msg)
  130.  ^~~~~~
  131. mod_fifo.c:1188:24: error: invalid storage class for function 'messagehook'
  132.  static switch_status_t messagehook (switch_core_session_t *session, switch_core_session_message_t *msg)
  133.                         ^~~~~~~~~~~
  134. mod_fifo.c:1388:1: error: ISO C forbids nested functions [-Werror=pedantic]
  135.  static void *SWITCH_THREAD_FUNC outbound_ringall_thread_run(switch_thread_t *thread, void *obj)
  136.  ^~~~~~
  137. mod_fifo.c:1388:33: error: invalid storage class for function 'outbound_ringall_thread_run'
  138.  static void *SWITCH_THREAD_FUNC outbound_ringall_thread_run(switch_thread_t *thread, void *obj)
  139.                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  140. mod_fifo.c:1780:1: error: ISO C forbids nested functions [-Werror=pedantic]
  141.  static void *SWITCH_THREAD_FUNC outbound_enterprise_thread_run(switch_thread_t *thread, void *obj)
  142.  ^~~~~~
  143. mod_fifo.c:1780:33: error: invalid storage class for function 'outbound_enterprise_thread_run'
  144.  static void *SWITCH_THREAD_FUNC outbound_enterprise_thread_run(switch_thread_t *thread, void *obj)
  145.                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  146. mod_fifo.c:1933:1: error: ISO C forbids nested functions [-Werror=pedantic]
  147.  static int place_call_ringall_callback(void *pArg, int argc, char **argv, char **columnNames)
  148.  ^~~~~~
  149. mod_fifo.c:1933:12: error: invalid storage class for function 'place_call_ringall_callback'
  150.  static int place_call_ringall_callback(void *pArg, int argc, char **argv, char **columnNames)
  151.             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  152. mod_fifo.c:1960:1: error: ISO C forbids nested functions [-Werror=pedantic]
  153.  static int place_call_enterprise_callback(void *pArg, int argc, char **argv, char **columnNames)
  154.  ^~~~~~
  155. mod_fifo.c:1960:12: error: invalid storage class for function 'place_call_enterprise_callback'
  156.  static int place_call_enterprise_callback(void *pArg, int argc, char **argv, char **columnNames)
  157.             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  158. mod_fifo.c:2014:1: error: ISO C forbids nested functions [-Werror=pedantic]
  159.  static int find_consumers(fifo_node_t *node)
  160.  ^~~~~~
  161. mod_fifo.c:2014:12: error: invalid storage class for function 'find_consumers'
  162.  static int find_consumers(fifo_node_t *node)
  163.             ^~~~~~~~~~~~~~
  164. mod_fifo.c:2095:1: error: ISO C forbids nested functions [-Werror=pedantic]
  165.  static void *SWITCH_THREAD_FUNC node_thread_run(switch_thread_t *thread, void *obj)
  166.  ^~~~~~
  167. mod_fifo.c:2095:33: error: invalid storage class for function 'node_thread_run'
  168.  static void *SWITCH_THREAD_FUNC node_thread_run(switch_thread_t *thread, void *obj)
  169.                                  ^~~~~~~~~~~~~~~
  170. mod_fifo.c:2191:1: error: ISO C forbids nested functions [-Werror=pedantic]
  171.  static void start_node_thread(switch_memory_pool_t *pool)
  172.  ^~~~~~
  173. mod_fifo.c:2191:13: error: invalid storage class for function 'start_node_thread'
  174.  static void start_node_thread(switch_memory_pool_t *pool)
  175.              ^~~~~~~~~~~~~~~~~
  176. mod_fifo.c:2201:1: error: ISO C forbids nested functions [-Werror=pedantic]
  177.  static int stop_node_thread(void)
  178.  ^~~~~~
  179. mod_fifo.c:2201:12: error: invalid storage class for function 'stop_node_thread'
  180.  static int stop_node_thread(void)
  181.             ^~~~~~~~~~~~~~~~
  182. mod_fifo.c:2211:1: error: ISO C forbids nested functions [-Werror=pedantic]
  183.  static void check_cancel(fifo_node_t *node)
  184.  ^~~~~~
  185. mod_fifo.c:2211:13: error: invalid storage class for function 'check_cancel'
  186.  static void check_cancel(fifo_node_t *node)
  187.              ^~~~~~~~~~~~
  188. mod_fifo.c:2229:1: error: ISO C forbids nested functions [-Werror=pedantic]
  189.  static void send_presence(fifo_node_t *node)
  190.  ^~~~~~
  191. mod_fifo.c:2229:13: error: invalid storage class for function 'send_presence'
  192.  static void send_presence(fifo_node_t *node)
  193.              ^~~~~~~~~~~~~
  194. mod_fifo.c:2267:1: error: ISO C forbids nested functions [-Werror=pedantic]
  195.  static void pres_event_handler(switch_event_t *event)
  196.  ^~~~~~
  197. mod_fifo.c:2267:13: error: invalid storage class for function 'pres_event_handler'
  198.  static void pres_event_handler(switch_event_t *event)
  199.              ^~~~~~~~~~~~~~~~~~
  200. mod_fifo.c:2310:1: error: ISO C forbids nested functions [-Werror=pedantic]
  201.  static uint32_t fifo_add_outbound(const char *node_name, const char *url, uint32_t priority)
  202.  ^~~~~~
  203. mod_fifo.c:2310:17: error: invalid storage class for function 'fifo_add_outbound'
  204.  static uint32_t fifo_add_outbound(const char *node_name, const char *url, uint32_t priority)
  205.                  ^~~~~~~~~~~~~~~~~
  206. In file included from ../../../../src/include/switch.h:113:0,
  207.                  from mod_fifo.c:32:
  208. ../../../../src/include/switch_types.h:2470:35: error: ISO C forbids nested functions [-Werror=pedantic]
  209.  #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)
  210.                                    ^
  211. mod_fifo.c:2345:1: note: in expansion of macro 'SWITCH_STANDARD_API'
  212.  SWITCH_STANDARD_API(fifo_check_bridge_function)
  213.  ^~~~~~~~~~~~~~~~~~~
  214. mod_fifo.c:2345:21: error: invalid storage class for function 'fifo_check_bridge_function'
  215.  SWITCH_STANDARD_API(fifo_check_bridge_function)
  216.                      ^
  217. ../../../../src/include/switch_types.h:2470:58: note: in definition of macro 'SWITCH_STANDARD_API'
  218.  #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)
  219.                                                           ^~~~
  220. ../../../../src/include/switch_types.h:2470:35: error: ISO C forbids nested functions [-Werror=pedantic]
  221.  #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)
  222.                                    ^
  223. mod_fifo.c:2352:1: note: in expansion of macro 'SWITCH_STANDARD_API'
  224.  SWITCH_STANDARD_API(fifo_add_outbound_function)
  225.  ^~~~~~~~~~~~~~~~~~~
  226. mod_fifo.c:2352:21: error: invalid storage class for function 'fifo_add_outbound_function'
  227.  SWITCH_STANDARD_API(fifo_add_outbound_function)
  228.                      ^
  229. ../../../../src/include/switch_types.h:2470:58: note: in definition of macro 'SWITCH_STANDARD_API'
  230.  #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)
  231.                                                           ^~~~
  232. mod_fifo.c:2387:1: error: ISO C forbids nested functions [-Werror=pedantic]
  233.  static void dec_use_count(switch_core_session_t *session, const char *type)
  234.  ^~~~~~
  235. mod_fifo.c:2387:13: error: invalid storage class for function 'dec_use_count'
  236.  static void dec_use_count(switch_core_session_t *session, const char *type)
  237.              ^~~~~~~~~~~~~
  238. mod_fifo.c:2441:1: error: ISO C forbids nested functions [-Werror=pedantic]
  239.  static switch_status_t hanguphook(switch_core_session_t *session)
  240.  ^~~~~~
  241. mod_fifo.c:2441:24: error: invalid storage class for function 'hanguphook'
  242.  static switch_status_t hanguphook(switch_core_session_t *session)
  243.                         ^~~~~~~~~~
  244. In file included from ../../../../src/include/switch.h:113:0,
  245.                  from mod_fifo.c:32:
  246. ../../../../src/include/switch_types.h:2444:35: error: ISO C forbids nested functions [-Werror=pedantic]
  247.  #define SWITCH_STANDARD_APP(name) static void name (switch_core_session_t *session, const char *data)
  248.                                    ^
  249. mod_fifo.c:2455:1: note: in expansion of macro 'SWITCH_STANDARD_APP'
  250.  SWITCH_STANDARD_APP(fifo_track_call_function)
  251.  ^~~~~~~~~~~~~~~~~~~
  252. mod_fifo.c:2455:21: error: invalid storage class for function 'fifo_track_call_function'
  253.  SWITCH_STANDARD_APP(fifo_track_call_function)
  254.                      ^
  255. ../../../../src/include/switch_types.h:2444:47: note: in definition of macro 'SWITCH_STANDARD_APP'
  256.  #define SWITCH_STANDARD_APP(name) static void name (switch_core_session_t *session, const char *data)
  257.                                                ^~~~
  258. mod_fifo.c:2518:1: error: ISO C forbids nested functions [-Werror=pedantic]
  259.  static void fifo_caller_add(fifo_node_t *node, switch_core_session_t *session)
  260.  ^~~~~~
  261. mod_fifo.c:2518:13: error: invalid storage class for function 'fifo_caller_add'
  262.  static void fifo_caller_add(fifo_node_t *node, switch_core_session_t *session)
  263.              ^~~~~~~~~~~~~~~
  264. mod_fifo.c:2534:1: error: ISO C forbids nested functions [-Werror=pedantic]
  265.  static void fifo_caller_del(const char *uuid)
  266.  ^~~~~~
  267. mod_fifo.c:2534:13: error: invalid storage class for function 'fifo_caller_del'
  268.  static void fifo_caller_del(const char *uuid)
  269.              ^~~~~~~~~~~~~~~
  270. In file included from ../../../../src/include/switch.h:113:0,
  271.                  from mod_fifo.c:32:
  272. ../../../../src/include/switch_types.h:2444:35: error: ISO C forbids nested functions [-Werror=pedantic]
  273.  #define SWITCH_STANDARD_APP(name) static void name (switch_core_session_t *session, const char *data)
  274.                                    ^
  275. mod_fifo.c:2555:1: note: in expansion of macro 'SWITCH_STANDARD_APP'
  276.  SWITCH_STANDARD_APP(fifo_function)
  277.  ^~~~~~~~~~~~~~~~~~~
  278. mod_fifo.c:2555:21: error: invalid storage class for function 'fifo_function'
  279.  SWITCH_STANDARD_APP(fifo_function)
  280.                      ^
  281. ../../../../src/include/switch_types.h:2444:47: note: in definition of macro 'SWITCH_STANDARD_APP'
  282.  #define SWITCH_STANDARD_APP(name) static void name (switch_core_session_t *session, const char *data)
  283.                                                ^~~~
  284. mod_fifo.c:3696:1: error: ISO C forbids nested functions [-Werror=pedantic]
  285.  static int xml_callback(void *pArg, int argc, char **argv, char **columnNames)
  286.  ^~~~~~
  287. mod_fifo.c:3696:12: error: invalid storage class for function 'xml_callback'
  288.  static int xml_callback(void *pArg, int argc, char **argv, char **columnNames)
  289.             ^~~~~~~~~~~~
  290. mod_fifo.c:3794:1: error: ISO C forbids nested functions [-Werror=pedantic]
  291.  static int xml_outbound(switch_xml_t xml, fifo_node_t *node, char *container, char *tag, int cc_off, int verbose)
  292.  ^~~~~~
  293. mod_fifo.c:3794:12: error: invalid storage class for function 'xml_outbound'
  294.  static int xml_outbound(switch_xml_t xml, fifo_node_t *node, char *container, char *tag, int cc_off, int verbose)
  295.             ^~~~~~~~~~~~
  296. mod_fifo.c:3836:1: error: ISO C forbids nested functions [-Werror=pedantic]
  297.  static int xml_bridge_callback(void *pArg, int argc, char **argv, char **columnNames)
  298.  ^~~~~~
  299. mod_fifo.c:3836:12: error: invalid storage class for function 'xml_bridge_callback'
  300.  static int xml_bridge_callback(void *pArg, int argc, char **argv, char **columnNames)
  301.             ^~~~~~~~~~~~~~~~~~~
  302. mod_fifo.c:3901:1: error: ISO C forbids nested functions [-Werror=pedantic]
  303.  static int xml_bridges(switch_xml_t xml, fifo_node_t *node, char *container, char *tag, int cc_off, int verbose)
  304.  ^~~~~~
  305. mod_fifo.c:3901:12: error: invalid storage class for function 'xml_bridges'
  306.  static int xml_bridges(switch_xml_t xml, fifo_node_t *node, char *container, char *tag, int cc_off, int verbose)
  307.             ^~~~~~~~~~~
  308. mod_fifo.c:3925:1: error: ISO C forbids nested functions [-Werror=pedantic]
  309.  static int xml_hash(switch_xml_t xml, switch_hash_t *hash, char *container, char *tag, int cc_off, int verbose)
  310.  ^~~~~~
  311. mod_fifo.c:3925:12: error: invalid storage class for function 'xml_hash'
  312.  static int xml_hash(switch_xml_t xml, switch_hash_t *hash, char *container, char *tag, int cc_off, int verbose)
  313.             ^~~~~~~~
  314. mod_fifo.c:3986:1: error: ISO C forbids nested functions [-Werror=pedantic]
  315.  static int xml_caller(switch_xml_t xml, fifo_node_t *node, char *container, char *tag, int cc_off, int verbose)
  316.  ^~~~~~
  317. mod_fifo.c:3986:12: error: invalid storage class for function 'xml_caller'
  318.  static int xml_caller(switch_xml_t xml, fifo_node_t *node, char *container, char *tag, int cc_off, int verbose)
  319.             ^~~~~~~~~~
  320. mod_fifo.c:4071:1: error: ISO C forbids nested functions [-Werror=pedantic]
  321.  static void list_node(fifo_node_t *node, switch_xml_t x_report, int *off, int verbose)
  322.  ^~~~~~
  323. mod_fifo.c:4071:13: error: invalid storage class for function 'list_node'
  324.  static void list_node(fifo_node_t *node, switch_xml_t x_report, int *off, int verbose)
  325.              ^~~~~~~~~
  326. mod_fifo.c:4114:1: error: ISO C forbids nested functions [-Werror=pedantic]
  327.  void dump_hash(switch_hash_t *hash, switch_stream_handle_t *stream)
  328.  ^~~~
  329. mod_fifo.c:4128:1: error: ISO C forbids nested functions [-Werror=pedantic]
  330.  void node_dump(switch_stream_handle_t *stream)
  331.  ^~~~
  332. In file included from ../../../../src/include/switch.h:113:0,
  333.                  from mod_fifo.c:32:
  334. ../../../../src/include/switch_types.h:2470:35: error: ISO C forbids nested functions [-Werror=pedantic]
  335.  #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)
  336.                                    ^
  337. mod_fifo.c:4172:1: note: in expansion of macro 'SWITCH_STANDARD_API'
  338.  SWITCH_STANDARD_API(fifo_api_function)
  339.  ^~~~~~~~~~~~~~~~~~~
  340. mod_fifo.c:4172:21: error: invalid storage class for function 'fifo_api_function'
  341.  SWITCH_STANDARD_API(fifo_api_function)
  342.                      ^
  343. ../../../../src/include/switch_types.h:2470:58: note: in definition of macro 'SWITCH_STANDARD_API'
  344.  #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)
  345.                                                           ^~~~
  346. mod_fifo.c:4369:1: error: ISO C forbids nested functions [-Werror=pedantic]
  347.  static void extract_fifo_outbound_uuid(char *string, char *uuid, switch_size_t len)
  348.  ^~~~~~
  349. mod_fifo.c:4369:13: error: invalid storage class for function 'extract_fifo_outbound_uuid'
  350.  static void extract_fifo_outbound_uuid(char *string, char *uuid, switch_size_t len)
  351.              ^~~~~~~~~~~~~~~~~~~~~~~~~~
  352. mod_fifo.c:4386:1: error: ISO C forbids nested functions [-Werror=pedantic]
  353.  static switch_status_t read_config_file(switch_xml_t *xml, switch_xml_t *cfg) {
  354.  ^~~~~~
  355. mod_fifo.c:4386:24: error: invalid storage class for function 'read_config_file'
  356.  static switch_status_t read_config_file(switch_xml_t *xml, switch_xml_t *cfg) {
  357.                         ^~~~~~~~~~~~~~~~
  358. mod_fifo.c:4443:1: error: ISO C forbids nested functions [-Werror=pedantic]
  359.  static switch_status_t load_config(int reload, int del_all)
  360.  ^~~~~~
  361. mod_fifo.c:4443:24: error: invalid storage class for function 'load_config'
  362.  static switch_status_t load_config(int reload, int del_all)
  363.                         ^~~~~~~~~~~
  364. mod_fifo.c:4670:1: error: ISO C forbids nested functions [-Werror=pedantic]
  365.  static void fifo_member_add(char *fifo_name, char *originate_string, int simo_count, int timeout, int lag, time_t expires, int taking_calls)
  366.  ^~~~~~
  367. mod_fifo.c:4670:13: error: invalid storage class for function 'fifo_member_add'
  368.  static void fifo_member_add(char *fifo_name, char *originate_string, int simo_count, int timeout, int lag, time_t expires, int taking_calls)
  369.              ^~~~~~~~~~~~~~~
  370. mod_fifo.c:4725:1: error: ISO C forbids nested functions [-Werror=pedantic]
  371.  static void fifo_member_del(char *fifo_name, char *originate_string)
  372.  ^~~~~~
  373. mod_fifo.c:4725:13: error: invalid storage class for function 'fifo_member_del'
  374.  static void fifo_member_del(char *fifo_name, char *originate_string)
  375.              ^~~~~~~~~~~~~~~
  376. In file included from ../../../../src/include/switch.h:113:0,
  377.                  from mod_fifo.c:32:
  378. ../../../../src/include/switch_types.h:2470:35: error: ISO C forbids nested functions [-Werror=pedantic]
  379.  #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)
  380.                                    ^
  381. mod_fifo.c:4766:1: note: in expansion of macro 'SWITCH_STANDARD_API'
  382.  SWITCH_STANDARD_API(fifo_member_api_function)
  383.  ^~~~~~~~~~~~~~~~~~~
  384. mod_fifo.c:4766:21: error: invalid storage class for function 'fifo_member_api_function'
  385.  SWITCH_STANDARD_API(fifo_member_api_function)
  386.                      ^
  387. ../../../../src/include/switch_types.h:2470:58: note: in definition of macro 'SWITCH_STANDARD_API'
  388.  #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)
  389.                                                           ^~~~
  390. ../../../../src/include/switch_types.h:2577:43: error: ISO C forbids nested functions [-Werror=pedantic]
  391.  #define SWITCH_MODULE_LOAD_FUNCTION(name) switch_status_t name SWITCH_MODULE_LOAD_ARGS
  392.                                            ^
  393. mod_fifo.c:4848:1: note: in expansion of macro 'SWITCH_MODULE_LOAD_FUNCTION'
  394.  SWITCH_MODULE_LOAD_FUNCTION(mod_fifo_load)
  395.  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  396. ../../../../src/include/switch_types.h:2579:47: error: ISO C forbids nested functions [-Werror=pedantic]
  397.  #define SWITCH_MODULE_SHUTDOWN_FUNCTION(name) switch_status_t name SWITCH_MODULE_SHUTDOWN_ARGS
  398.                                                ^
  399. mod_fifo.c:4918:1: note: in expansion of macro 'SWITCH_MODULE_SHUTDOWN_FUNCTION'
  400.  SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_fifo_shutdown)
  401.  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402. mod_fifo.c:4971:1: error: expected declaration or statement at end of input
  403.  }
  404.  ^
  405. mod_fifo.c: At top level:
  406. mod_fifo.c:117:24: error: 'load_config' used but never defined [-Werror]
  407.  static switch_status_t load_config(int reload, int del_all);
  408.                         ^~~~~~~~~~~
  409. mod_fifo.c:150:12: error: 'check_caller_outbound_call' used but never defined [-Werror]
  410.  static int check_caller_outbound_call(const char *key);
  411.             ^~~~~~~~~~~~~~~~~~~~~~~~~~
  412. mod_fifo.c:151:13: error: 'add_caller_outbound_call' declared 'static' but never defined [-Werror=unused-function]
  413.  static void add_caller_outbound_call(const char *key, switch_call_cause_t *cancel_cause);
  414.              ^~~~~~~~~~~~~~~~~~~~~~~~
  415. mod_fifo.c:152:13: error: 'del_caller_outbound_call' declared 'static' but never defined [-Werror=unused-function]
  416.  static void del_caller_outbound_call(const char *key);
  417.              ^~~~~~~~~~~~~~~~~~~~~~~~
  418. mod_fifo.c:153:13: error: 'cancel_caller_outbound_call' declared 'static' but never defined [-Werror=unused-function]
  419.  static void cancel_caller_outbound_call(const char *key, switch_call_cause_t cause);
  420.              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  421. mod_fifo.c:154:12: error: 'check_consumer_outbound_call' declared 'static' but never defined [-Werror=unused-function]
  422.  static int check_consumer_outbound_call(const char *key);
  423.             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  424. mod_fifo.c:155:13: error: 'add_consumer_outbound_call' declared 'static' but never defined [-Werror=unused-function]
  425.  static void add_consumer_outbound_call(const char *key, switch_call_cause_t *cancel_cause);
  426.              ^~~~~~~~~~~~~~~~~~~~~~~~~~
  427. mod_fifo.c:156:13: error: 'del_consumer_outbound_call' declared 'static' but never defined [-Werror=unused-function]
  428.  static void del_consumer_outbound_call(const char *key);
  429.              ^~~~~~~~~~~~~~~~~~~~~~~~~~
  430. mod_fifo.c:157:13: error: 'cancel_consumer_outbound_call' declared 'static' but never defined [-Werror=unused-function]
  431.  static void cancel_consumer_outbound_call(const char *key, switch_call_cause_t cause);
  432.              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  433. mod_fifo.c:159:12: error: 'check_bridge_call' declared 'static' but never defined [-Werror=unused-function]
  434.  static int check_bridge_call(const char *key);
  435.             ^~~~~~~~~~~~~~~~~
  436. mod_fifo.c:160:13: error: 'add_bridge_call' declared 'static' but never defined [-Werror=unused-function]
  437.  static void add_bridge_call(const char *key);
  438.              ^~~~~~~~~~~~~~~
  439. mod_fifo.c:161:13: error: 'del_bridge_call' declared 'static' but never defined [-Werror=unused-function]
  440.  static void del_bridge_call(const char *key);
  441.              ^~~~~~~~~~~~~~~
  442. mod_fifo.c:415:13: error: 'fifo_caller_add' declared 'static' but never defined [-Werror=unused-function]
  443.  static void fifo_caller_add(fifo_node_t *node, switch_core_session_t *session);
  444.              ^~~~~~~~~~~~~~~
  445. mod_fifo.c:416:13: error: 'fifo_caller_del' used but never defined [-Werror]
  446.  static void fifo_caller_del(const char *uuid);
  447.              ^~~~~~~~~~~~~~~
  448. In file included from ../../../../src/include/switch.h:113:0,
  449.                  from mod_fifo.c:32:
  450. mod_fifo.c:4918:33: error: 'mod_fifo_shutdown' defined but not used [-Werror=unused-function]
  451.  SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_fifo_shutdown)
  452.                                  ^
  453. ../../../../src/include/switch_types.h:2579:63: note: in definition of macro 'SWITCH_MODULE_SHUTDOWN_FUNCTION'
  454.  #define SWITCH_MODULE_SHUTDOWN_FUNCTION(name) switch_status_t name SWITCH_MODULE_SHUTDOWN_ARGS
  455.                                                                ^~~~
  456. mod_fifo.c:4848:29: error: 'mod_fifo_load' defined but not used [-Werror=unused-function]
  457.  SWITCH_MODULE_LOAD_FUNCTION(mod_fifo_load)
  458.                              ^
  459. ../../../../src/include/switch_types.h:2577:59: note: in definition of macro 'SWITCH_MODULE_LOAD_FUNCTION'
  460.  #define SWITCH_MODULE_LOAD_FUNCTION(name) switch_status_t name SWITCH_MODULE_LOAD_ARGS
  461.                                                            ^~~~
  462. mod_fifo.c:784:12: error: 'check_caller_outbound_call' defined but not used [-Werror=unused-function]
  463.  static int check_caller_outbound_call(const char *key)
  464.             ^~~~~~~~~~~~~~~~~~~~~~~~~~
  465. cc1: all warnings being treated as errors
  466. Makefile:703: recipe for target 'mod_fifo_la-mod_fifo.lo' failed
  467. make[4]: *** [mod_fifo_la-mod_fifo.lo] Error 1
  468. make[4]: Leaving directory '/drone/src/src/mod/applications/mod_fifo'
  469. Makefile:705: recipe for target 'mod_fifo-all' failed
  470. make[3]: *** [mod_fifo-all] Error 1