Fix compile warnings with clang
ClosedPublic

Authored by flherne on Mar 21 2017, 11:21 PM.

Details

Summary

I'm fairly sure '!=' is the intended meaning in the first two hunks.

No idea at all what the bit-hack-with-narrowing-conversions is meant to do, but nothing actually seems to use it (in any kdev*).

Test Plan

Compiles, the tests pass. kdev-php hasn't obviously blown up.

Diff Detail

Repository
R51 KDevelop: PG Qt
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
flherne created this revision.Mar 21 2017, 11:21 PM
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptMar 21 2017, 11:21 PM
apol added a subscriber: apol.Mar 21 2017, 11:47 PM

First time I see the code, but the changes look sound.
+1

(Also, what where they thinking!? !smth==0 >.<

kfunk accepted this revision.Mar 22 2017, 8:21 AM
kfunk added a subscriber: kfunk.

Generally: +1

Files in kdev-pg/AS* are thirdparty code, maybe we should rather try syncing the source files from upstream & check whether they've fixed the issue already?

This revision is now accepted and ready to land.Mar 22 2017, 8:21 AM
This revision was automatically updated to reflect the committed changes.