From 695bfb29b2fc69ce2828e166e1c6d76843db53d1 Mon Sep 17 00:00:00 2001 From: Mario Emmenlauer Date: Wed, 7 Sep 2022 11:09:27 +0200 Subject: compiler/cpp/src/thrift/thriftl.ll: Minor fixes to satisfy MSVC 2022 in std:c++20 mode --- compiler/cpp/src/thrift/thriftl.ll | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler') diff --git a/compiler/cpp/src/thrift/thriftl.ll b/compiler/cpp/src/thrift/thriftl.ll index d60e84645..1cc3d2388 100644 --- a/compiler/cpp/src/thrift/thriftl.ll +++ b/compiler/cpp/src/thrift/thriftl.ll @@ -76,17 +76,17 @@ #include "thrift/thrifty.hh" #endif -void integer_overflow(char* text) { +void integer_overflow(const char* text) { yyerror("This integer is too big: \"%s\"\n", text); exit(1); } -void unexpected_token(char* text) { +void unexpected_token(const char* text) { yyerror("Unexpected token in input: \"%s\"\n", text); exit(1); } -void error_no_longer_supported(char* text, char* replace_with) { +void error_no_longer_supported(const char* text, const char* replace_with) { yyerror("\"%s\" is no longer supported, use \"%s\" instead. Line %d\n", text, replace_with, yylineno); exit(1); } -- cgit v1.2.1