mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +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:
committed by
Gunnar Beutner
parent
5598f63d0f
commit
5f7f063919
@@ -217,7 +217,7 @@ void IntelNativeGraphicsAdapter::enable_vga_plane()
|
||||
VERIFY(m_modeset_lock.is_locked());
|
||||
}
|
||||
|
||||
static inline const char* convert_register_index_to_string(IntelGraphics::RegisterIndex index)
|
||||
[[maybe_unused]] static inline const char* convert_register_index_to_string(IntelGraphics::RegisterIndex index)
|
||||
{
|
||||
switch (index) {
|
||||
case IntelGraphics::RegisterIndex::PipeAConf:
|
||||
|
||||
Reference in New Issue
Block a user