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) {
fPendingBodies[*iterator].push_back(*replyTo);
} else {
// Note: GCC 13 warns about the unused result of the statement below. This code should
// be reviewed as part of #18478
#if __GNUC__ == 13
// Note: GCC 13 or later warns about the unused result of the statement below.
// This code should be reviewed as part of #18478.
#if __GNUC__ >= 13
# pragma GCC diagnostic push
# pragma GCC diagnostic warning "-Wunused-result"
#endif
fPendingBodies[*iterator].begin();
#if __GNUC__ == 13
#if __GNUC__ >= 13
# pragma GCC diagnostic pop
#endif
}