#12744: [Patch] IMAPConnectionWorker.cpp: fix gcc6 build
---------------------------+------------------------------
Reporter: mt | Owner: czeidler
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Kits/Mail Kit | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
---------------------------+------------------------------
In IMAPConnectionWorker::MessageExpungeReceived(), gcc6 warns '-Werror
=nonnull-compare'. Since IMAPConnectionWorker class has 'fLocker', it
seems to be better to use 'fLocker'with BAutolock.
{{{
/home/haiku/haiku/haiku/src/add-
ons/mail_daemon/inbound_protocols/imap/IMAPConnectionWorker.cpp: In member
function 'virtual void
IMAPConnectionWorker::MessageExpungeReceived(uint32)':
/home/haiku/haiku/haiku/src/add-
ons/mail_daemon/inbound_protocols/imap/IMAPConnectionWorker.cpp:702:21:
error: nonnull argument 'this' compared to NULL [-Werror=nonnull-compare]
BLocker locker(this);
^
cc1plus: all warnings being treated as errors
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/12744>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.