1.1 --- a/src/share/vm/services/management.cpp Thu May 15 18:23:26 2014 -0400 1.2 +++ b/src/share/vm/services/management.cpp Thu May 22 15:52:41 2014 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2003, 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 @@ -55,6 +55,8 @@ 1.11 #include "services/threadService.hpp" 1.12 #include "utilities/macros.hpp" 1.13 1.14 +PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC 1.15 + 1.16 PerfVariable* Management::_begin_vm_creation_time = NULL; 1.17 PerfVariable* Management::_end_vm_creation_time = NULL; 1.18 PerfVariable* Management::_vm_init_done_time = NULL; 1.19 @@ -1832,12 +1834,12 @@ 1.20 uintx uvalue = (uintx)new_value.j; 1.21 1.22 if (strncmp(name, "MaxHeapFreeRatio", 17) == 0) { 1.23 - FormatBuffer<80> err_msg(""); 1.24 + FormatBuffer<80> err_msg("%s", ""); 1.25 if (!Arguments::verify_MaxHeapFreeRatio(err_msg, uvalue)) { 1.26 THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), err_msg.buffer()); 1.27 } 1.28 } else if (strncmp(name, "MinHeapFreeRatio", 17) == 0) { 1.29 - FormatBuffer<80> err_msg(""); 1.30 + FormatBuffer<80> err_msg("%s", ""); 1.31 if (!Arguments::verify_MinHeapFreeRatio(err_msg, uvalue)) { 1.32 THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), err_msg.buffer()); 1.33 }