8203939: JVMFlag::printError missing ATTRIBUTE_PRINTF
Summary: Added missing ATTRIBUTE_PRINTF
Reviewed-by: kbarrett, hseigel
--- a/src/hotspot/share/runtime/flags/jvmFlag.hpp Mon Jun 04 08:56:41 2018 -0700
+++ b/src/hotspot/share/runtime/flags/jvmFlag.hpp Mon Jun 04 12:14:22 2018 -0500
@@ -276,7 +276,7 @@
// printRanges will print out flags type, name and range values as expected by -XX:+PrintFlagsRanges
static void printFlags(outputStream* out, bool withComments, bool printRanges = false, bool skipDefaults = false);
- static void printError(bool verbose, const char* msg, ...);
+ static void printError(bool verbose, const char* msg, ...) ATTRIBUTE_PRINTF(2, 3);
static void verify() PRODUCT_RETURN;
};