Skip to content

Commit b9e62cb

Browse files
compnerdktopley-apple
authored andcommitted
build: silence -Wassign-enum
Silence the enum assignment warning from clang. It is triggered by use of constants in macros that are not part of an enumeration when the parameter is of an enumerated type. This shows up when building for Windows. Rather than clutter the codebase with compiler specific macros to silence the warning, disable it. Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
1 parent f3f0e51 commit b9e62cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/modules/DispatchCompilerWarnings.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,6 @@ else()
7474
add_compile_options(-Wno-int-conversion)
7575
add_compile_options(-Wno-shorten-64-to-32)
7676
endif()
77+
add_compile_options(-Wno-error=assign-enum)
7778
endmacro()
7879
endif()

0 commit comments

Comments
 (0)