mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05:00
Disable some warnings when compiling with MSVC, so more important ones aren't hidden in the noise.
This commit is contained in:
parent
6b2705065b
commit
13c5bc2d9e
@ -20,6 +20,12 @@ endif()
|
|||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
add_compile_options(-Wall -Wextra -Wvla -Woverloaded-virtual -Wno-inconsistent-missing-override -ffast-math -fno-finite-math-only -ftree-vectorize)
|
add_compile_options(-Wall -Wextra -Wvla -Woverloaded-virtual -Wno-inconsistent-missing-override -ffast-math -fno-finite-math-only -ftree-vectorize)
|
||||||
|
else()
|
||||||
|
# Disable some warnings, so more useful warnings aren't hidden in the noise
|
||||||
|
# 4996 'fopen': This function or variable may be unsafe. Consider using fopen_s instead.
|
||||||
|
# C4267: 'return': conversion from 'size_t' to 'int', possible loss of data
|
||||||
|
# C4305: 'initializing': truncation from 'double' to 'Real'
|
||||||
|
add_compile_options(/wd4996 /wd4267 /wd4305)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (SANITIZE_ADDRESS)
|
if (SANITIZE_ADDRESS)
|
||||||
|
Loading…
Reference in New Issue
Block a user