Skip to content

Commit 311e7c8

Browse files
committed
cmake: disable some MSVC warnings
1 parent 725f04b commit 311e7c8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/cmake/modules/myci.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,10 +915,12 @@ function(myci_declare_library name)
915915
# /W4 includes check for non-virtual-destructor.
916916
# There is no equivalent for -fstring-aliasing, as MSVS generally assumes a more conservative aliasing model by default.
917917

918+
# TODO: this list is duplicated in myci_declare_application, avoid duplication.
918919
# disable some warnings
919920
/wd4458 # local declaration hides class member
920921
/wd4100 # unreferenced parameter
921922
/wd4456 # declaration of 'X' hides previous local declaration
923+
/wd4459 # declaration of 'X' hides global declaration
922924
)
923925
else()
924926
if(arg_NO_WARNINGS_AS_ERRORS)
@@ -1214,6 +1216,7 @@ function(myci_declare_application name)
12141216
/wd4458 # local declaration hides class member
12151217
/wd4100 # unreferenced parameter
12161218
/wd4456 # declaration of 'X' hides previous local declaration
1219+
/wd4459 # declaration of 'X' hides global declaration
12171220
)
12181221
else()
12191222
target_compile_options(${name} PRIVATE

0 commit comments

Comments
 (0)