Remove CPP_ATTRIBUTE_FALLTHROUGH macro

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-10-22 16:12:30 +00:00
committed by Compute-Runtime-Automation
parent 257b1de14e
commit d34ef3170a
13 changed files with 32 additions and 66 deletions

View File

@@ -6,7 +6,6 @@
*/
#include "shared/source/os_interface/hw_info_config.h"
#include "shared/source/utilities/compiler_support.h"
#include "shared/test/common/helpers/hw_helper_tests.h"
#include "shared/test/common/mocks/mock_graphics_allocation.h"
@@ -48,7 +47,7 @@ DG1TEST_F(HwHelperTestDg1, givenDg1AndVariousSteppingsWhenGettingIsWorkaroundReq
switch (stepping) {
case REVISION_A0:
EXPECT_TRUE(hwHelper.isWorkaroundRequired(REVISION_A0, REVISION_B, hardwareInfo));
CPP_ATTRIBUTE_FALLTHROUGH;
[[fallthrough]];
default:
EXPECT_FALSE(hwHelper.isWorkaroundRequired(REVISION_B, REVISION_A0, hardwareInfo));
EXPECT_FALSE(hwHelper.isWorkaroundRequired(REVISION_A0, REVISION_D, hardwareInfo));

View File

@@ -6,7 +6,6 @@
*/
#include "shared/source/os_interface/hw_info_config.h"
#include "shared/source/utilities/compiler_support.h"
#include "shared/test/common/helpers/hw_helper_tests.h"
using HwHelperTestGen12Lp = HwHelperTest;
@@ -57,10 +56,10 @@ TGLLPTEST_F(HwHelperTestGen12Lp, givenTgllpAndVariousSteppingsWhenGettingIsWorka
switch (stepping) {
case REVISION_A0:
EXPECT_TRUE(hwHelper.isWorkaroundRequired(REVISION_A0, REVISION_B, hardwareInfo));
CPP_ATTRIBUTE_FALLTHROUGH;
[[fallthrough]];
case REVISION_B:
EXPECT_TRUE(hwHelper.isWorkaroundRequired(REVISION_A0, REVISION_C, hardwareInfo));
CPP_ATTRIBUTE_FALLTHROUGH;
[[fallthrough]];
default:
EXPECT_FALSE(hwHelper.isWorkaroundRequired(REVISION_A0, REVISION_D, hardwareInfo));
EXPECT_FALSE(hwHelper.isWorkaroundRequired(REVISION_B, REVISION_A0, hardwareInfo));