mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
build: Increase strictness of warnings.
This commit is contained in:
parent
1476d396f8
commit
e2cb7578bc
|
@ -162,6 +162,7 @@ endif()
|
|||
|
||||
if(NOT MSVC)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic -Wall -Wextra -Wno-unused-parameter")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror-implicit-function-declaration -Werror=incompatible-pointer-types")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Wno-unused-parameter")
|
||||
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
|
||||
|
|
|
@ -19,6 +19,8 @@ cpp = meson.get_compiler('cpp')
|
|||
add_project_arguments(cc.get_supported_arguments([
|
||||
'-D_XOPEN_SOURCE=700',
|
||||
'-Wno-unused-parameter',
|
||||
'-Werror-implicit-function-declaration',
|
||||
'-Werror=incompatible-pointer-types'
|
||||
]), language: 'c')
|
||||
|
||||
add_project_arguments(cpp.get_supported_arguments([
|
||||
|
|
Loading…
Reference in a new issue