Bug 422457 - kdelibs-4.14.38/dnssd/servicemodel.cpp compile error
Summary: kdelibs-4.14.38/dnssd/servicemodel.cpp compile error
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-04 17:09 UTC by Henry Pfeil
Modified: 2020-06-05 13:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch fixes servicemodel compile error (406 bytes, patch)
2020-06-04 17:09 UTC, Henry Pfeil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Pfeil 2020-06-04 17:09:48 UTC
Created attachment 129049 [details]
Patch fixes servicemodel compile error

SUMMARY
servicemodel.cpp:90:7: error: narrowing conversion of ‘DNSSD::ServiceModel::ServicePtrRole’ from ‘unsigned int’ to ‘int’

FIX: servicemodel.h:71 - change ServicePtrRole assignment from unsigned int to int
ServicePtrRole = static_cast<int>(0xA06519DE)

STEPS TO REPRODUCE
1. g++ -o servicemodel.o servicemodel.cpp --> compile error
2. change ServicePtrRole assignment from unsigned int to int
3. kdelibs-4.14.38 builds with no errors

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kernel 5.4.44
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION - See Attachment
Comment 1 Christoph Feck 2020-06-04 23:22:01 UTC
kdelibs4 is no longer maintained, sorry.
Comment 2 Wolfgang Bauer 2020-06-05 13:35:51 UTC
Btw, this was fixed in KDE Frameworks5 (kdnssd) 6 years ago, in a different way:
https://invent.kde.org/frameworks/kdnssd/-/commit/80b43aaae27cfdf543483cd55d9012e37219350a