Skip to content

Commit 0e386f9

Browse files
committed
cmake: disable some MSVC warnings
1 parent 13cd883 commit 0e386f9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/cmake/modules/myci.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,9 @@ function(myci_declare_library name)
903903
/WX # warnings = errors
904904
# /W4 includes check for non-virtual-destructor.
905905
# There is no equivalent for -fstring-aliasing, as MSVS generally assumes a more conservative aliasing model by default.
906+
907+
# disable some warnings
908+
/wd4458 # local declaration hides class member
906909
)
907910
else()
908911
target_compile_options(${name} PRIVATE
@@ -1187,6 +1190,9 @@ function(myci_declare_application name)
11871190
/WX # warnings = errors
11881191
# /W4 includes check for non-virtual-destructor.
11891192
# There is no equivalent for -fstring-aliasing, as MSVS generally assumes a more conservative aliasing model by default.
1193+
1194+
# disable some warnings
1195+
/wd4458 # local declaration hides class member
11901196
)
11911197
else()
11921198
target_compile_options(${name} PRIVATE

0 commit comments

Comments
 (0)