mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Enable -Werror
This commit is contained in:
parent
75c9b069ee
commit
a3416aa14f
@ -470,7 +470,7 @@ IF (PEDANTIC)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_warnings}")
|
||||
ELSE (MSVC)
|
||||
# add warnings via flags (not as definitions as on Mac -Wall can not be overridden per language )
|
||||
SET(_warnings "-Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing")
|
||||
SET(_warnings "-Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Werror")
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${_warnings}")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_warnings}")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user