Skip to content

Commit d2e5c63

Browse files
committed
Disable some specific warnings related with C extensions.
There are 2 warnings disabled in this commit. cast-qual is related with dropping const specified during cast. gnu-flexible-array-initializer notices that is the GNU extension, used only for static const initialization of global variable.
1 parent df7bf27 commit d2e5c63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/helpers.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,21 +232,21 @@ function(add_umf_target_compile_options name)
232232
PRIVATE -fPIC
233233
-Wall
234234
-Wextra
235-
-Wpedantic
236235
-Wempty-body
237236
-Wunused-parameter
238237
-Wformat
239238
-Wformat-security
240239
-Wcast-qual
241240
-Wunused-result
241+
-Wno-cast-qual
242242
$<$<CXX_COMPILER_ID:GNU>:-fdiagnostics-color=auto>)
243243
if(CMAKE_BUILD_TYPE STREQUAL "Release")
244244
target_compile_definitions(${name} PRIVATE -D_FORTIFY_SOURCE=2)
245245
endif()
246246
if(UMF_DEVELOPER_MODE)
247247
target_compile_options(
248248
${name} PRIVATE -fno-omit-frame-pointer
249-
-fstack-protector-strong -Werror)
249+
-fstack-protector-strong -Werror)
250250
endif()
251251
if(UMF_USE_COVERAGE)
252252
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")

0 commit comments

Comments
 (0)