From db96144d49e09e7eb99eff1d3ab89ca8e5309225 Mon Sep 17 00:00:00 2001 From: Rangi Date: Wed, 8 Jul 2026 16:44:15 -0400 Subject: [PATCH] Use `[[nodiscard]]` instead of `[[gnu::warn_unused_result]]` --- src/gfx/pal_spec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx/pal_spec.cpp b/src/gfx/pal_spec.cpp index c3714a39..05970f89 100644 --- a/src/gfx/pal_spec.cpp +++ b/src/gfx/pal_spec.cpp @@ -169,7 +169,7 @@ void parseInlinePalSpec(char const * const rawArg) { // Appends the first line read from `file` to the end of the provided `buffer`. // Returns true if a line was read. -[[gnu::warn_unused_result]] +[[nodiscard]] static bool readLine(std::filebuf &file, std::string &buffer) { assume(buffer.empty()); for (;;) {