From 44978f00e3d268dccfd52bdb24ccb342da845ef8 Mon Sep 17 00:00:00 2001 From: Michal Schulz Date: Mon, 14 Jun 2021 14:52:37 +0000 Subject: [PATCH] Use compiler-agnostic designation of fall-through in switch/case. --- common/commit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/commit.cpp b/common/commit.cpp index e49e147e36..e2bbcdd726 100644 --- a/common/commit.cpp +++ b/common/commit.cpp @@ -27,6 +27,7 @@ #include #include +#include COMMIT::COMMIT() { @@ -208,7 +209,7 @@ CHANGE_TYPE COMMIT::convert( UNDO_REDO aType ) const default: assert( false ); - // fall through + KI_FALLTHROUGH; case UNDO_REDO::CHANGED: return CHT_MODIFY;