mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
Merge pull request #5323 from Morph1984/enforce-c4101
cmake: Enforce C4101
This commit is contained in:
commit
fe9588f4a0
2 changed files with 1 additions and 2 deletions
|
@ -46,6 +46,7 @@ if (MSVC)
|
||||||
# Warnings
|
# Warnings
|
||||||
/W3
|
/W3
|
||||||
/we4062 # enumerator 'identifier' in a switch of enum 'enumeration' is not handled
|
/we4062 # enumerator 'identifier' in a switch of enum 'enumeration' is not handled
|
||||||
|
/we4101 # 'identifier': unreferenced local variable
|
||||||
/we4265 # 'class': class has virtual functions, but destructor is not virtual
|
/we4265 # 'class': class has virtual functions, but destructor is not virtual
|
||||||
/we4388 # signed/unsigned mismatch
|
/we4388 # signed/unsigned mismatch
|
||||||
/we4547 # 'operator' : operator before comma has no effect; expected operator with side-effect
|
/we4547 # 'operator' : operator before comma has no effect; expected operator with side-effect
|
||||||
|
|
|
@ -95,8 +95,6 @@ int main(int argc, char** argv) {
|
||||||
int option_index = 0;
|
int option_index = 0;
|
||||||
|
|
||||||
InitializeLogging();
|
InitializeLogging();
|
||||||
|
|
||||||
char* endarg;
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
int argc_w;
|
int argc_w;
|
||||||
auto argv_w = CommandLineToArgvW(GetCommandLineW(), &argc_w);
|
auto argv_w = CommandLineToArgvW(GetCommandLineW(), &argc_w);
|
||||||
|
|
Loading…
Reference in a new issue