Bug 985074

Summary: GCC6: qterm fails to build
Product: [openSUSE] openSUSE Tumbleweed Reporter: Dominique Leuenberger <dimstar>
Component: OtherAssignee: Marguerite Su <i>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: forgotten__PxcxmX-kS, i
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 984984    

Description Dominique Leuenberger 2016-06-16 13:04:03 UTC
Since the update to GCC6, openSUSE:Factory/qterm fails to build
Comment 1 Forgotten User _PxcxmX-kS 2016-06-24 07:25:13 UTC
Thanks for taking care of it, I received the build failure today, now I need install a openSUSE to fix it, just download it, ;)
Please go on. Below is the build error.
Now I still don't know how to add you into the  X11:Utilities group, you can try to upload package to it first.

/home/abuild/rpmbuild/BUILD/qterm-0.5.12/src/uaocodec.cpp:15598:1: error: narrowing conversion of ''\37777777642'' from 'char' to 'uchar {aka unsigned char}' inside { } [-Wnarrowing]
Comment 2 Marguerite Su 2016-06-24 08:12:19 UTC
https://build.opensuse.org/request/show/404461
Comment 3 Marguerite Su 2016-06-24 08:13:49 UTC
(In reply to Bin Li from comment #1)
> /home/abuild/rpmbuild/BUILD/qterm-0.5.12/src/uaocodec.cpp:15598:1: error:
> narrowing conversion of ''\37777777642'' from 'char' to 'uchar {aka unsigned
> char}' inside { } [-Wnarrowing]

It can be resolved by static_cast<unsigned char>('something'). just wrote a script to have all such strings fixed.
Comment 4 Forgotten User _PxcxmX-kS 2016-06-24 08:29:30 UTC
Great job! 
:)