diff --git a/service/native/src/screen_action.cpp b/service/native/src/screen_action.cpp index db7785b1ac6e240b4f0e1853fd074e68a3943a7b..163a4c25adc4f332032988d0a1ed102b07e349fe 100644 --- a/service/native/src/screen_action.cpp +++ b/service/native/src/screen_action.cpp @@ -33,7 +33,7 @@ void ScreenAction::Init() DISPLAY_HILOGI(MODULE_SERVICE, "Succeed to init"); } -bool ScreenAction::SetPowerState(ScreenState state __unused) +bool ScreenAction::SetPowerState(ScreenState state __attribute__((__unused__))) { return true; }