summaryrefslogtreecommitdiff
path: root/src/flex.skl
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-01-27 13:58:08 +0100
committerWill Estes <westes575@gmail.com>2016-01-27 17:01:14 -0500
commit4936786fc5b748a071687e8d25ae042374e374e6 (patch)
treefaea6e72ee74de8529095d6d74b01c2b3b64ae21 /src/flex.skl
parent24a1589f866fd00e609530458d109a8567a98a10 (diff)
Fixed declaration mismatch in yy_fatal_error.
The prototype declares yy_fatal_error parameter as "const char msg[]" while the definition uses "const char* msg" (introduced by commit e9d5fc713f61b) which causes the sparse static checkers to produce an error. Fix this by adjusting the definition to use "const char* msg" as well. Also change the C++ version accordingly so it matches the declaration in FlexLexer.hpp.
Diffstat (limited to 'src/flex.skl')
-rw-r--r--src/flex.skl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flex.skl b/src/flex.skl
index 2daaefb..0374ecd 100644
--- a/src/flex.skl
+++ b/src/flex.skl
@@ -740,7 +740,7 @@ static int yy_get_next_buffer M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );
#if defined(__GNUC__) && __GNUC__ >= 3
__attribute__((__noreturn__))
#endif
-static void yy_fatal_error M4_YY_PARAMS( yyconst char msg[] M4_YY_PROTO_LAST_ARG );
+static void yy_fatal_error M4_YY_PARAMS( yyconst char* msg M4_YY_PROTO_LAST_ARG );
]])
%endif
@@ -2558,7 +2558,7 @@ static void yy_fatal_error YYFARGS1(yyconst char*, msg)
}
%endif
%if-c++-only
-void yyFlexLexer::LexerError( yyconst char msg[] )
+void yyFlexLexer::LexerError( yyconst char* msg )
{
M4_YY_DECL_GUTS_VAR();
std::cerr << msg << std::endl;