This is an automated email from the ASF dual-hosted git repository.
emmenlau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new 695bfb29b compiler/cpp/src/thrift/thriftl.ll: Minor fixes to satisfy
MSVC 2022 in std:c++20 mode
new a39139e96 Merge pull request #2653 from BioDataAnalysis/bda_fix_clang15
695bfb29b is described below
commit 695bfb29b2fc69ce2828e166e1c6d76843db53d1
Author: Mario Emmenlauer <[email protected]>
AuthorDate: Wed Sep 7 11:09:27 2022 +0200
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(-)
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);
}