mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:58:12 +00:00
Everywhere: Mark debug-only functions [[maybe_unused]]
These functions are only used from within `dbgln_if` calls, so in certain build configurations, they go unused. Similarly to variables, we now signal to the compiler that we understand that these are not always in use.
This commit is contained in:
parent
5598f63d0f
commit
5f7f063919
4 changed files with 4 additions and 4 deletions
|
@ -22,7 +22,7 @@ UNMAP_AFTER_INIT NonnullRefPtr<PIT> PIT::initialize(Function<void(const Register
|
|||
return adopt_ref(*new PIT(move(callback)));
|
||||
}
|
||||
|
||||
inline static void reset_countdown(u16 timer_reload)
|
||||
[[maybe_unused]] inline static void reset_countdown(u16 timer_reload)
|
||||
{
|
||||
IO::out8(PIT_CTL, TIMER0_SELECT | WRITE_WORD | MODE_COUNTDOWN);
|
||||
IO::out8(TIMER0_CTL, LSB(timer_reload));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue