Bug 1029864

Summary: libqt5-qtwebkit uses -Wextra, fails to build with GCC 7
Product: [openSUSE] openSUSE Tumbleweed Reporter: Richard Biener <rguenther>
Component: KDE Workspace (Plasma)Assignee: E-Mail List <opensuse-kde-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P2 - High CC: dimstar, martin.liska
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: 1030236    

Description Richard Biener 2017-03-17 10:36:02 UTC
-Wextra enables the new -Wexpansion-to-defined which causes OBS to run into

qemu-system-x86_64: terminating on signal 15 from pid 23592

Logfile got too big, killed job.

because of a huge swat of warnings from code like

[ 5443s] ../WTF/wtf/Atomics.h:221:1: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
[ 5443s]  #if OS(WINDOWS) && !COMPILER(GCC)
[ 5443s]  ^~~~~~~~~~~~~~~~

basically the warning says that sth like

#define OS(x) defined(x)
#if OS(WINDOWS)

is not something that is allowed by the language (but works in GCC).

I suggest to add -Wno-expansion-to-defined.
Comment 1 Martin Liška 2018-06-01 07:25:31 UTC
Should be fixed.