mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 05:52:23 +08:00
🚧 gucc: mark Initcpio::write nodiscard to prevent accidental ignore of return value
This commit is contained in:
parent
db9e0b16e2
commit
493c5430ba
@ -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{};
|
||||
|
Loading…
Reference in New Issue
Block a user