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 <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
Murai Takashi 2024-05-01 21:03:17 +09:00 committed by Jérôme Duval
parent baa67e1184
commit f82119e910
1 changed files with 4 additions and 4 deletions

View File

@ -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
} }