From 05a7f2f4d368ecb302c49871dadcc72d60f5047b Mon Sep 17 00:00:00 2001 From: Erich Cordoba Date: Thu, 20 Jun 2019 21:56:00 +0000 Subject: [PATCH] Revert "Supress implicit-fallthrough warnings." This reverts commit 717f285c644eb4eb6b69898a223ad4453c0971c4. This proposed changed is not compatible with the old GCC 4.3, a better patch needs to be done compatible with both gcc versions. Change-Id: I657a4b92f1d30dac16d3a611baec8140ade3ad80 --- mtce/src/common/nodeClass.cpp | 2 -- mtce/src/maintenance/mtcNodeHdlrs.cpp | 4 ---- 2 files changed, 6 deletions(-) diff --git a/mtce/src/common/nodeClass.cpp b/mtce/src/common/nodeClass.cpp index a174c466..8dbb755a 100755 --- a/mtce/src/common/nodeClass.cpp +++ b/mtce/src/common/nodeClass.cpp @@ -826,7 +826,6 @@ struct nodeLinkClass::node* nodeLinkClass::getEventBaseNode ( libEvent_enum requ return ptr ; } - __attribute__ ((fallthrough)); } case VIM_HOST_DISABLED: case VIM_HOST_ENABLED: @@ -840,7 +839,6 @@ struct nodeLinkClass::node* nodeLinkClass::getEventBaseNode ( libEvent_enum requ return ptr ; } - __attribute__ ((fallthrough)); } case BARBICAN_GET_SECRET: case BARBICAN_READ_SECRET: diff --git a/mtce/src/maintenance/mtcNodeHdlrs.cpp b/mtce/src/maintenance/mtcNodeHdlrs.cpp index f3318880..6aa14f42 100755 --- a/mtce/src/maintenance/mtcNodeHdlrs.cpp +++ b/mtce/src/maintenance/mtcNodeHdlrs.cpp @@ -3232,7 +3232,6 @@ int nodeLinkClass::offline_handler ( struct nodeLinkClass::node * node_ptr ) node_ptr->offlineStage = MTC_OFFLINE__SEND_MTCALIVE ; /* fall through on start */ - __attribute__ ((fallthrough)); } case MTC_OFFLINE__SEND_MTCALIVE: { @@ -3871,7 +3870,6 @@ int nodeLinkClass::reset_handler ( struct nodeLinkClass::node * node_ptr ) } node_ptr->power_action_retries = MTC_RESET_ACTION_RETRY_COUNT ; /* the fall through is intentional */ - __attribute__ ((fallthrough)); } case MTC_RESET__REQ_SEND: { @@ -4694,7 +4692,6 @@ int nodeLinkClass::power_handler ( struct nodeLinkClass::node * node_ptr ) node_ptr->power_action_retries = MTC_POWER_ACTION_RETRY_COUNT ; //the fall through to MTC_POWEROFF__REQ_SEND is intentional - __attribute__ ((fallthrough)); } case MTC_POWEROFF__REQ_SEND: { @@ -4854,7 +4851,6 @@ int nodeLinkClass::power_handler ( struct nodeLinkClass::node * node_ptr ) node_ptr->power_action_retries = MTC_POWER_ACTION_RETRY_COUNT ; powerStageChange ( node_ptr , MTC_POWERON__POWER_STATUS ); //the fall through to MTC_POWERON__REQ_SEND is intentional - __attribute__ ((fallthrough)); } case MTC_POWERON__POWER_STATUS: {