From dd059bb29fcfacc0000443f1ebf03a9cd61ac482 Mon Sep 17 00:00:00 2001 From: Marcus Larsson Date: Wed, 11 Nov 2015 15:45:17 +0100 Subject: [PATCH] 8142483: Unified logging log instances cause warnings on windows when only static functions are used Reviewed-by: brutisso, sla --- hotspot/src/share/vm/logging/log.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hotspot/src/share/vm/logging/log.hpp b/hotspot/src/share/vm/logging/log.hpp index 2f041afeb78..bcd6cde58b4 100644 --- a/hotspot/src/share/vm/logging/log.hpp +++ b/hotspot/src/share/vm/logging/log.hpp @@ -88,6 +88,11 @@ class Log VALUE_OBJ_CLASS_SPEC { // is not __NO_TAG, the number of tags given exceeds the maximum allowed. STATIC_ASSERT(GuardTag == LogTag::__NO_TAG); // Number of logging tags exceeds maximum supported! + // Empty constructor to avoid warnings on MSVC about unused variables + // when the log instance is only used for static functions. + Log() { + } + static bool is_level(LogLevelType level) { return LogTagSetMapping::tagset().is_level(level); }