From ad340466d09ae6de8adc20949f433772cb016b54 Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Sat, 18 Jul 2020 20:42:28 +0200 Subject: Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs (#25054) Related: #25006 (cherry picked from commit 85b5b842ca6c05d4e51081e6c3282940a80f3761) --- src/common/Logging/AppenderConsole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/Logging/AppenderConsole.cpp') diff --git a/src/common/Logging/AppenderConsole.cpp b/src/common/Logging/AppenderConsole.cpp index f69ed1b1494..86e7634f1b9 100644 --- a/src/common/Logging/AppenderConsole.cpp +++ b/src/common/Logging/AppenderConsole.cpp @@ -185,7 +185,7 @@ void AppenderConsole::_write(LogMessage const* message) index = 0; break; case LOG_LEVEL_ERROR: - /* fallthrough */ + [[fallthrough]]; default: index = 1; break; -- cgit v1.2.3