Module: kamailio
Branch: master
Commit: f230035d8275cbad8d7515f73ba242f77a7a16db
URL:
https://github.com/kamailio/kamailio/commit/f230035d8275cbad8d7515f73ba242f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-10T08:27:58+01:00
cfg.lex: removed yynoreturn attribute for ksr_yy_fatal_error()
- it is defined only by newer flex version, resulting in compile
failure on older versions (e.g., centos 7)
---
Modified: src/core/cfg.lex
---
Diff:
https://github.com/kamailio/kamailio/commit/f230035d8275cbad8d7515f73ba242f…
Patch:
https://github.com/kamailio/kamailio/commit/f230035d8275cbad8d7515f73ba242f…
---
diff --git a/src/core/cfg.lex b/src/core/cfg.lex
index 6fd49dfdf7..e3e4be7be8 100644
--- a/src/core/cfg.lex
+++ b/src/core/cfg.lex
@@ -42,7 +42,7 @@
#include "daemonize.h"
#include "ppcfg.h"
- static void yynoreturn ksr_yy_fatal_error(const char* msg);
+ static void ksr_yy_fatal_error(const char* msg);
#define YY_FATAL_ERROR(msg) ksr_yy_fatal_error(msg);
/* states */
@@ -2167,7 +2167,7 @@ static void pp_endif()
pp_update_state();
}
-static void yynoreturn ksr_yy_fatal_error(const char* msg)
+static void ksr_yy_fatal_error(const char* msg)
{
if(ksr_atexit_mode==1) {
yy_fatal_error(msg);