8139116: Fixes for warning "format not a string literal"

Reviewed-by: ddmitriev, david, simonis
This commit is contained in:
Goetz Lindenmaier 2015-10-09 16:39:37 +02:00
parent af7bf9a76a
commit 4aad17f807
14 changed files with 49 additions and 110 deletions

View file

@ -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();