This is an automated email from the ASF dual-hosted git repository.

adebreceni pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git

commit 8ae306a9a1b59cebbb961b3e746e53b5e19fe9fc
Author: Gabor Gyimesi <[email protected]>
AuthorDate: Tue Sep 28 10:53:57 2021 +0200

    MINIFICPP-1649 Replace magic fallthrough strings with attribute
    
    Signed-off-by: Adam Debreceni <[email protected]>
    
    This closes #1179
---
 extensions/windows-event-log/ConsumeWindowsEventLog.cpp | 2 +-
 libminifi/src/utils/StringUtils.cpp                     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/extensions/windows-event-log/ConsumeWindowsEventLog.cpp 
b/extensions/windows-event-log/ConsumeWindowsEventLog.cpp
index b152a9d..b7e13a8 100644
--- a/extensions/windows-event-log/ConsumeWindowsEventLog.cpp
+++ b/extensions/windows-event-log/ConsumeWindowsEventLog.cpp
@@ -671,7 +671,7 @@ void ConsumeWindowsEventLog::refreshTimeZoneData() {
     case TIME_ZONE_ID_DAYLIGHT:
       tzstr = tzinfo.DaylightName;
       dst = true;
-      // [[fallthrough]];
+      [[fallthrough]];
     case TIME_ZONE_ID_STANDARD:
       tzstr = tzstr.empty() ? tzinfo.StandardName : tzstr;  // Use standard 
timezome name in case there is no daylight name or in case it's not DST
       tzbias = tzinfo.Bias + (dst ? tzinfo.DaylightBias : tzinfo.StandardBias);
diff --git a/libminifi/src/utils/StringUtils.cpp 
b/libminifi/src/utils/StringUtils.cpp
index 3d5e4d6..cc2952e 100644
--- a/libminifi/src/utils/StringUtils.cpp
+++ b/libminifi/src/utils/StringUtils.cpp
@@ -323,7 +323,7 @@ bool StringUtils::from_base64(uint8_t* data, size_t* 
data_length, const char* ba
       return false;
     case 2:
       digits[2] = 0x00;
-      // fall through
+      [[fallthrough]];
     case 3: {
       digits[3] = 0x00;
 

Reply via email to