Fix unused-object warnings
ClosedPublic

Authored by dkurz on Oct 31 2018, 9:00 PM.

Diff Detail

Repository
R165 Akonadi
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dkurz created this revision.Oct 31 2018, 9:00 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptOct 31 2018, 9:00 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
dkurz requested review of this revision.Oct 31 2018, 9:00 PM
mlaurent requested changes to this revision.Nov 1 2018, 10:22 AM
mlaurent added a subscriber: mlaurent.
mlaurent added inline comments.
src/agentbase/agentbase.cpp
908

argv is used in windows

> put it in #else

This revision now requires changes to proceed.Nov 1 2018, 10:22 AM
dkurz updated this revision to Diff 44624.Nov 1 2018, 11:30 AM

Removed Q_UNUSED(argv) from Windows build

dkurz marked an inline comment as done.Nov 1 2018, 11:30 AM
dvratil accepted this revision.Nov 1 2018, 12:29 PM
dvratil added a subscriber: dvratil.
dvratil added inline comments.
src/agentbase/agentbase.cpp
908

This is OK the way it is: this is a special code for Windows, so it's ifdefed correctly.

dkurz marked an inline comment as done.Nov 1 2018, 12:53 PM

arcanist complains that this Diff has not been accepted. In general, should I wait for positive feedback from the same reviewer after all requested changes from this reviewer have been fixed and accepted by another reviewer?

src/agentbase/agentbase.cpp
908

It is now, after I moved Q_UNUSED(argv) to the else branch. Laurent was right about this.

In thin particular case it's OK to merge now - you fixed what Laurent asked for and there's hardly anything else in this patch to complain about :-)

src/agentbase/agentbase.cpp
908

Ah, sorry: I haven't noticed the comment was for a previous revision and though Laurent wanted you to swap the ifdef logic.

This revision was not accepted when it landed; it landed in state Needs Review.Nov 1 2018, 1:41 PM
This revision was automatically updated to reflect the committed changes.
dkurz marked an inline comment as done.