mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8139116: Fixes for warning "format not a string literal"
Reviewed-by: ddmitriev, david, simonis
This commit is contained in:
parent
af7bf9a76a
commit
4aad17f807
14 changed files with 49 additions and 110 deletions
|
@ -315,6 +315,7 @@ inline Symbol* check_symbol_at(constantPoolHandle cp, int index) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef ASSERT
|
||||
PRAGMA_DIAG_PUSH
|
||||
PRAGMA_FORMAT_NONLITERAL_IGNORED
|
||||
void ClassFileParser::report_assert_property_failure(const char* msg, TRAPS) {
|
||||
|
@ -327,6 +328,7 @@ void ClassFileParser::report_assert_property_failure(const char* msg, int index,
|
|||
fatal(msg, index, _class_name->as_C_string());
|
||||
}
|
||||
PRAGMA_DIAG_POP
|
||||
#endif
|
||||
|
||||
constantPoolHandle ClassFileParser::parse_constant_pool(TRAPS) {
|
||||
ClassFileStream* cfs = stream();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue