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:
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue