Bug 422457

Summary: kdelibs-4.14.38/dnssd/servicemodel.cpp compile error
Product: [I don't know] kde Reporter: Henry Pfeil <hpfeil>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: wbauer1
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Slackware   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Patch fixes servicemodel compile error

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