File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments