Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
libssh
remove-pedantic-errors.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File remove-pedantic-errors.diff of Package libssh
From: Jan Engelhardt <jengelh@medozas.de> Date: 2012-02-06 00:00:21.707276910 +0100 The header file /usr/include/asm/sigcontext.h uses an unnamed aggregate (inside struct _fpstate), which is not permitted by ISO C99. gcc's -pedantic-errors flag causes this to be flagged. gcc has an exception that system header files are exempt from pedantic-error reporting, but somehow this fails to work in SLES 11 SP 1 and only SP1, even though - both SP0 and SP1 have gcc-4.3.4 - the unnamed aggregate is in both SP0 and SP1 Just like -Werror is a common nuisance, rip out -pedantic-errors occurences as well. --- cmake/Modules/DefineCompilerFlags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: libssh-0.5.1/cmake/Modules/DefineCompilerFlags.cmake =================================================================== --- libssh-0.5.1.orig/cmake/Modules/DefineCompilerFlags.cmake +++ libssh-0.5.1/cmake/Modules/DefineCompilerFlags.cmake @@ -9,7 +9,7 @@ if (UNIX AND NOT WIN32) # if (${CMAKE_C_COMPILER_ID} MATCHES GNU) # add -Wconversion ? - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic -pedantic-errors") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wformat-security") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute")
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor