mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-01 19:38:43 +00:00
Use [[nodiscard]] instead of [[gnu::warn_unused_result]]
This commit is contained in:
@@ -169,7 +169,7 @@ void parseInlinePalSpec(char const * const rawArg) {
|
|||||||
|
|
||||||
// Appends the first line read from `file` to the end of the provided `buffer`.
|
// Appends the first line read from `file` to the end of the provided `buffer`.
|
||||||
// Returns true if a line was read.
|
// Returns true if a line was read.
|
||||||
[[gnu::warn_unused_result]]
|
[[nodiscard]]
|
||||||
static bool readLine(std::filebuf &file, std::string &buffer) {
|
static bool readLine(std::filebuf &file, std::string &buffer) {
|
||||||
assume(buffer.empty());
|
assume(buffer.empty());
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
|||||||
Reference in New Issue
Block a user