1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 22:15:06 +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:
Daniel Bertalan 2021-07-05 18:08:48 +02:00 committed by Gunnar Beutner
parent 5598f63d0f
commit 5f7f063919
4 changed files with 4 additions and 4 deletions

View file

@ -45,7 +45,7 @@ enum VGAColor : u8 {
White,
};
static inline VGAColor convert_standard_color_to_vga_color(Console::Color color)
[[maybe_unused]] static inline VGAColor convert_standard_color_to_vga_color(Console::Color color)
{
switch (color) {
case Console::Color::Black: