summaryrefslogtreecommitdiff
path: root/Userland/Libraries
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 /Userland/Libraries
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 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp
index fb16b3383f..d9da8fb676 100644
--- a/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp
+++ b/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp
@@ -17,7 +17,7 @@
namespace Web::SVG {
-static void print_instruction(const PathInstruction& instruction)
+[[maybe_unused]] static void print_instruction(const PathInstruction& instruction)
{
VERIFY(PATH_DEBUG);