diff options
author | Mario Emmenlauer <memmenlauer@biodataanalysis.de> | 2022-09-07 11:09:27 +0200 |
---|---|---|
committer | Mario Emmenlauer <memmenlauer@biodataanalysis.de> | 2022-09-07 13:47:59 +0200 |
commit | 695bfb29b2fc69ce2828e166e1c6d76843db53d1 (patch) | |
tree | eb41a1cf47d4dcc499501da58a58f59e7f3acd15 /compiler | |
parent | 8a32156dd26d418ad5c35cd6ab912a01d6aaf843 (diff) | |
download | thrift-695bfb29b2fc69ce2828e166e1c6d76843db53d1.tar.gz |
compiler/cpp/src/thrift/thriftl.ll: Minor fixes to satisfy MSVC 2022 in std:c++20 mode
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/cpp/src/thrift/thriftl.ll | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |