inbound_protocols/imap: Fix GCC 14 build

Same as GCC 13, GCC 14 warns unused result.

Change-Id: I49f286f1dff1c7baf786baf4b271085d23d4bad5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7640
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Murai Takashi
2024-05-05 13:13:02 +00:00
committed by Jérôme Duval
parent baa67e1184
commit f82119e910
@@ -411,14 +411,14 @@ IMAPFolder::RegisterPendingBodies(IMAP::MessageUIDList& uids,
if (replyTo != NULL) { if (replyTo != NULL) {
fPendingBodies[*iterator].push_back(*replyTo); fPendingBodies[*iterator].push_back(*replyTo);
} else { } else {
// Note: GCC 13 warns about the unused result of the statement below. This code should // Note: GCC 13 or later warns about the unused result of the statement below.
// be reviewed as part of #18478 // This code should be reviewed as part of #18478.
#if __GNUC__ == 13 #if __GNUC__ >= 13
# pragma GCC diagnostic push # pragma GCC diagnostic push
# pragma GCC diagnostic warning "-Wunused-result" # pragma GCC diagnostic warning "-Wunused-result"
#endif #endif
fPendingBodies[*iterator].begin(); fPendingBodies[*iterator].begin();
#if __GNUC__ == 13 #if __GNUC__ >= 13
# pragma GCC diagnostic pop # pragma GCC diagnostic pop
#endif #endif
} }