Skip to content

Commit

Permalink
🚧 gucc: mark Initcpio::write nodiscard to prevent accidental ignore o…
Browse files Browse the repository at this point in the history
…f return value
  • Loading branch information
vnepogodin committed Aug 16, 2024
1 parent db9e0b1 commit 493c543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gucc/include/gucc/initcpio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Initcpio final {
return this->write();
}

bool write() const noexcept;
[[nodiscard]] bool write() const noexcept;

std::vector<std::string> modules{};
std::vector<std::string> files{};
Expand Down

0 comments on commit 493c543

Please sign in to comment.