summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2021-01-09 22:49:58 -0800
committerGravatar GitHub2021-01-09 22:49:58 -0800
commitfe9588f4a0155288e1cbdbf60abe31abde89c233 (patch)
treed3fb1c33fdb41b552979bbe4498ccf59459029a7 /src
parentMerge pull request #5320 from ReinUsesLisp/div-ceil-type (diff)
parentcmake: Enforce C4101 (diff)
downloadyuzu-fe9588f4a0155288e1cbdbf60abe31abde89c233.tar.gz
yuzu-fe9588f4a0155288e1cbdbf60abe31abde89c233.tar.xz
yuzu-fe9588f4a0155288e1cbdbf60abe31abde89c233.zip
Merge pull request #5323 from Morph1984/enforce-c4101
cmake: Enforce C4101
Diffstat (limited to '')
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/yuzu_cmd/yuzu.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index daf251d19..61adbef28 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -46,6 +46,7 @@ if (MSVC)
46 # Warnings 46 # Warnings
47 /W3 47 /W3
48 /we4062 # enumerator 'identifier' in a switch of enum 'enumeration' is not handled 48 /we4062 # enumerator 'identifier' in a switch of enum 'enumeration' is not handled
49 /we4101 # 'identifier': unreferenced local variable
49 /we4265 # 'class': class has virtual functions, but destructor is not virtual 50 /we4265 # 'class': class has virtual functions, but destructor is not virtual
50 /we4388 # signed/unsigned mismatch 51 /we4388 # signed/unsigned mismatch
51 /we4547 # 'operator' : operator before comma has no effect; expected operator with side-effect 52 /we4547 # 'operator' : operator before comma has no effect; expected operator with side-effect
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index 39e0d35aa..4faf62ede 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -95,8 +95,6 @@ int main(int argc, char** argv) {
95 int option_index = 0; 95 int option_index = 0;
96 96
97 InitializeLogging(); 97 InitializeLogging();
98
99 char* endarg;
100#ifdef _WIN32 98#ifdef _WIN32
101 int argc_w; 99 int argc_w;
102 auto argv_w = CommandLineToArgvW(GetCommandLineW(), &argc_w); 100 auto argv_w = CommandLineToArgvW(GetCommandLineW(), &argc_w);