didQueueOverflow(...) shouldn't be [[nodiscard]]

This commit is contained in:
Rodrigo Alfonso
2025-01-26 23:16:56 -03:00
parent a82088ad7c
commit 97ddfc7edc
4 changed files with 4 additions and 4 deletions

View File

@@ -268,7 +268,7 @@ class LinkCable {
* this call, the overflow flag is cleared if `clear` is `true` (default
* behavior).
*/
[[nodiscard]] bool didQueueOverflow(bool clear = true) {
bool didQueueOverflow(bool clear = true) {
bool overflow = false;
for (u32 i = 0; i < LINK_CABLE_MAX_PLAYERS; i++) {

View File

@@ -162,7 +162,7 @@ class LinkCube {
* this call, the overflow flag is cleared if `clear` is `true` (default
* behavior).
*/
[[nodiscard]] bool didQueueOverflow(bool clear = true) {
bool didQueueOverflow(bool clear = true) {
bool overflow = newIncomingQueue.overflow;
if (clear)
newIncomingQueue.overflow = false;

View File

@@ -369,7 +369,7 @@ class LinkUniversal {
* this call, the overflow flag is cleared if `clear` is `true` (default
* behavior).
*/
[[nodiscard]] bool didQueueOverflow(bool clear = true) {
bool didQueueOverflow(bool clear = true) {
bool overflow = mode == Mode::LINK_CABLE ? linkCable.didQueueOverflow()
: linkWireless.didQueueOverflow();

View File

@@ -691,7 +691,7 @@ class LinkWireless {
* this call, the overflow flag is cleared if `clear` is `true` (default
* behavior).
*/
[[nodiscard]] bool didQueueOverflow(bool clear = true) {
bool didQueueOverflow(bool clear = true) {
bool overflow = sessionState.newIncomingMessages.overflow;
if (clear)
sessionState.newIncomingMessages.overflow = false;