Browse code

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)

Daniel-Constantin Mierla authored on 10/02/2021 07:27:58
Showing 1 changed files
... ...
@@ -42,7 +42,7 @@
42 42
 	#include "daemonize.h"
43 43
 	#include "ppcfg.h"
44 44
 
45
-	static void yynoreturn ksr_yy_fatal_error(const char* msg);
45
+	static void ksr_yy_fatal_error(const char* msg);
46 46
 	#define YY_FATAL_ERROR(msg) ksr_yy_fatal_error(msg);
47 47
 
48 48
 	/* states */
... ...
@@ -2167,7 +2167,7 @@ static void pp_endif()
2167 2167
 	pp_update_state();
2168 2168
 }
2169 2169
 
2170
-static void yynoreturn ksr_yy_fatal_error(const char* msg)
2170
+static void ksr_yy_fatal_error(const char* msg)
2171 2171
 {
2172 2172
 	if(ksr_atexit_mode==1) {
2173 2173
 		yy_fatal_error(msg);