Module: kamailio Branch: master Commit: 20fdab545a5f5c3ef1b8d8c4c392acaf4f9e8aae URL: https://github.com/kamailio/kamailio/commit/20fdab545a5f5c3ef1b8d8c4c392acaf...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2021-02-09T21:16:52+01:00
core: cfg.lex - removed __attribute__((unused))
- not supported on some distros - workaround to avoid unused warning
---
Modified: src/core/cfg.lex
---
Diff: https://github.com/kamailio/kamailio/commit/20fdab545a5f5c3ef1b8d8c4c392acaf... Patch: https://github.com/kamailio/kamailio/commit/20fdab545a5f5c3ef1b8d8c4c392acaf...
---
diff --git a/src/core/cfg.lex b/src/core/cfg.lex index 591fb1e630..6fd49dfdf7 100644 --- a/src/core/cfg.lex +++ b/src/core/cfg.lex @@ -42,7 +42,6 @@ #include "daemonize.h" #include "ppcfg.h"
- static void yynoreturn yy_fatal_error ( const char* msg ) __attribute__((unused)); static void yynoreturn ksr_yy_fatal_error(const char* msg); #define YY_FATAL_ERROR(msg) ksr_yy_fatal_error(msg);
@@ -2170,6 +2169,10 @@ static void pp_endif()
static void yynoreturn ksr_yy_fatal_error(const char* msg) { + if(ksr_atexit_mode==1) { + yy_fatal_error(msg); + } + fprintf( stderr, "%s\n", msg ); - ksr_exit( YY_EXIT_FAILURE ); + _exit( YY_EXIT_FAILURE ); }