Skip to content

Commit

Permalink
core: cfg.lex - removed __attribute__((unused))
Browse files Browse the repository at this point in the history
- not supported on some distros
- workaround to avoid unused warning
  • Loading branch information
miconda committed Feb 9, 2021
1 parent d8643cd commit 20fdab5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/core/cfg.lex
Expand Up @@ -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);

Expand Down Expand Up @@ -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 );
}

0 comments on commit 20fdab5

Please sign in to comment.