Skip to content

Commit 0f8383e

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 d4bd29f commit 0f8383e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/helpers.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,13 @@ 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)

0 commit comments

Comments
 (0)