1.1 --- a/src/share/vm/oops/constantPool.cpp Thu May 15 18:23:26 2014 -0400 1.2 +++ b/src/share/vm/oops/constantPool.cpp Thu May 22 15:52:41 2014 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -42,6 +42,8 @@ 1.11 #include "runtime/signature.hpp" 1.12 #include "runtime/vframe.hpp" 1.13 1.14 +PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC 1.15 + 1.16 ConstantPool* ConstantPool::allocate(ClassLoaderData* loader_data, int length, TRAPS) { 1.17 // Tags are RW but comment below applies to tags also. 1.18 Array<u1>* tags = MetadataFactory::new_writeable_array<u1>(loader_data, length, 0, CHECK_NULL); 1.19 @@ -1884,7 +1886,7 @@ 1.20 void ConstantPool::print_on(outputStream* st) const { 1.21 EXCEPTION_MARK; 1.22 assert(is_constantPool(), "must be constantPool"); 1.23 - st->print_cr(internal_name()); 1.24 + st->print_cr("%s", internal_name()); 1.25 if (flags() != 0) { 1.26 st->print(" - flags: 0x%x", flags()); 1.27 if (has_preresolution()) st->print(" has_preresolution");