Skip to content

Commit

Permalink
Fix maybe_unused bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilchmela authored and PatrickKa committed Sep 3, 2024
1 parent 977db65 commit 1d13f3d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sts1CobcSw/Periphery/FlashMock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,29 +147,29 @@ auto DoReadJedecId() -> JedecId
}


auto DoReadStatusRegister([maybe_unused] std::int8_t registerNo) -> Byte
auto DoReadStatusRegister([[maybe_unused]] std::int8_t registerNo) -> Byte
{
return Byte{0};
}


auto DoReadPage([maybe_unused] std::uint32_t address) -> Page
auto DoReadPage([[maybe_unused]] std::uint32_t address) -> Page
{
return Page{};
}


auto DoProgramPage([maybe_unused] std::uint32_t address, [maybe_unused] PageSpan data) -> void
auto DoProgramPage([[maybe_unused]] std::uint32_t address, [[maybe_unused]] PageSpan data) -> void
{
}


auto DoEraseSector([maybe_unused] std::uint32_t address) -> void
auto DoEraseSector([[maybe_unused]] std::uint32_t address) -> void
{
}


auto DoWaitWhileBusy([maybe_unused] std::int64_t timeout) -> Result<void>
auto DoWaitWhileBusy([[maybe_unused]] std::int64_t timeout) -> Result<void>
{
return outcome_v2::success();
}
Expand Down

0 comments on commit 1d13f3d

Please sign in to comment.