From 493c5430bab4627e955703b5c6e5c972c3f5d717 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Sat, 17 Aug 2024 03:29:39 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20gucc:=20mark=20Initcpio::write?= =?UTF-8?q?=20nodiscard=20to=20prevent=20accidental=20ignore=20of=20return?= =?UTF-8?q?=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gucc/include/gucc/initcpio.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gucc/include/gucc/initcpio.hpp b/gucc/include/gucc/initcpio.hpp index 440e0ca..fd9e28a 100644 --- a/gucc/include/gucc/initcpio.hpp +++ b/gucc/include/gucc/initcpio.hpp @@ -99,7 +99,7 @@ class Initcpio final { return this->write(); } - bool write() const noexcept; + [[nodiscard]] bool write() const noexcept; std::vector modules{}; std::vector files{};