summaryrefslogtreecommitdiff
path: root/Kernel/Time/PIT.cpp
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-07-05 18:08:48 +0200
committerGunnar Beutner <gunnar@beutner.name>2021-07-08 10:11:00 +0200
commit5f7f063919cfdbe0fd6fd47bf5657b1394b2250e (patch)
treef5ba464b5a653e335bb339e5f0d3a28aad30a286 /Kernel/Time/PIT.cpp
parent5598f63d0fbe9784f4b0a8af16a71a252c9c386a (diff)
downloadserenity-5f7f063919cfdbe0fd6fd47bf5657b1394b2250e.zip
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.
Diffstat (limited to 'Kernel/Time/PIT.cpp')
-rw-r--r--Kernel/Time/PIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Time/PIT.cpp b/Kernel/Time/PIT.cpp
index 68ec1fde87..581c9a6afb 100644
--- a/Kernel/Time/PIT.cpp
+++ b/Kernel/Time/PIT.cpp
@@ -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));