Commit e461effa8b9c45c2f423d0a723f800918e2b9291
1 parent
cd4d510d
Disable visual studio warning 'Declaration of a zero-sized array'
Showing
1 changed file
with
1 additions
and
1 deletions
openhantek/CMakeLists.txt
| ... | ... | @@ -27,7 +27,7 @@ add_executable(${PROJECT_NAME} ${SRC} ${HEADERS} ${QRC} ${TRANSLATION_BIN_FILES} |
| 27 | 27 | target_link_libraries(${PROJECT_NAME} Qt5::Widgets Qt5::PrintSupport Qt5::OpenGL ${OPENGL_LIBRARIES} ) |
| 28 | 28 | target_compile_features(${PROJECT_NAME} PRIVATE cxx_range_for) |
| 29 | 29 | 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") | |
| 31 | 31 | target_compile_options(${PROJECT_NAME} PRIVATE "$<$<CONFIG:DEBUG>:/MDd>") |
| 32 | 32 | else() |
| 33 | 33 | target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-long-long -pedantic) | ... | ... |