changeset 50987:9e6cd9974016

8203939: JVMFlag::printError missing ATTRIBUTE_PRINTF Summary: Added missing ATTRIBUTE_PRINTF Reviewed-by: kbarrett, hseigel
author gziemski
date Mon, 04 Jun 2018 12:14:22 -0500
parents ce5352719340
children 4d03087dd257
files src/hotspot/share/runtime/flags/jvmFlag.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 };