Skip to content

Commit e461eff

Browse files
author
David Graeff
committed
Disable visual studio warning 'Declaration of a zero-sized array'
1 parent cd4d510 commit e461eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openhantek/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ add_executable(${PROJECT_NAME} ${SRC} ${HEADERS} ${QRC} ${TRANSLATION_BIN_FILES}
2727
target_link_libraries(${PROJECT_NAME} Qt5::Widgets Qt5::PrintSupport Qt5::OpenGL ${OPENGL_LIBRARIES} )
2828
target_compile_features(${PROJECT_NAME} PRIVATE cxx_range_for)
2929
if(MSVC)
30-
target_compile_options(${PROJECT_NAME} PRIVATE "/W4" "/wd4251" "/wd4127" "/wd4275" "/nologo" "/J" "/Zi")
30+
target_compile_options(${PROJECT_NAME} PRIVATE "/W4" "/wd4251" "/wd4127" "/wd4275" "/wd4200" "/nologo" "/J" "/Zi")
3131
target_compile_options(${PROJECT_NAME} PRIVATE "$<$<CONFIG:DEBUG>:/MDd>")
3232
else()
3333
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-long-long -pedantic)

0 commit comments

Comments
 (0)