1.1 --- a/src/share/vm/compiler/disassembler.cpp Thu May 15 18:23:26 2014 -0400 1.2 +++ b/src/share/vm/compiler/disassembler.cpp Thu May 22 15:52:41 2014 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2008, 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 @@ -51,6 +51,8 @@ 1.11 #include "shark/sharkEntry.hpp" 1.12 #endif 1.13 1.14 +PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC 1.15 + 1.16 void* Disassembler::_library = NULL; 1.17 bool Disassembler::_tried_to_load_library = false; 1.18 1.19 @@ -411,6 +413,7 @@ 1.20 return env->handle_event(event, (address) arg); 1.21 } 1.22 1.23 +ATTRIBUTE_PRINTF(2, 3) 1.24 static int printf_to_env(void* env_pv, const char* format, ...) { 1.25 decode_env* env = (decode_env*) env_pv; 1.26 outputStream* st = env->output();