8203939: JVMFlag::printError missing ATTRIBUTE_PRINTF
authorgziemski
Mon, 04 Jun 2018 12:14:22 -0500
changeset 50383 9e6cd9974016
parent 50382 ce5352719340
child 50384 4d03087dd257
8203939: JVMFlag::printError missing ATTRIBUTE_PRINTF Summary: Added missing ATTRIBUTE_PRINTF Reviewed-by: kbarrett, hseigel
src/hotspot/share/runtime/flags/jvmFlag.hpp
--- 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;
 };