Daniele Bartolini 8 rokov pred
rodič
commit
daf154ae8e
2 zmenil súbory, kde vykonal 2 pridanie a 6 odobranie
  1. 1 3
      src/device/main_linux.cpp
  2. 1 3
      src/device/main_windows.cpp

+ 1 - 3
src/device/main_linux.cpp

@@ -800,10 +800,8 @@ int main(int argc, char** argv)
 	InitMemoryGlobals m;
 	InitMemoryGlobals m;
 	CE_UNUSED(m);
 	CE_UNUSED(m);
 
 
-	int ec = EXIT_SUCCESS;
-
 	DeviceOptions opts(default_allocator(), argc, (const char**)argv);
 	DeviceOptions opts(default_allocator(), argc, (const char**)argv);
-	ec = opts.parse();
+	int ec = opts.parse();
 
 
 	if (ec == EXIT_SUCCESS)
 	if (ec == EXIT_SUCCESS)
 		ec = s_ldvc.run(&opts);
 		ec = s_ldvc.run(&opts);

+ 1 - 3
src/device/main_windows.cpp

@@ -748,10 +748,8 @@ int main(int argc, char** argv)
 	InitMemoryGlobals m;
 	InitMemoryGlobals m;
 	CE_UNUSED(m);
 	CE_UNUSED(m);
 
 
-	int ec = EXIT_SUCCESS;
-
 	DeviceOptions opts(default_allocator(), argc, (const char**)argv);
 	DeviceOptions opts(default_allocator(), argc, (const char**)argv);
-	ec = opts.parse();
+	int ec = opts.parse();
 
 
 	if (ec == EXIT_SUCCESS)
 	if (ec == EXIT_SUCCESS)
 		ec = s_wdvc.run(&opts);
 		ec = s_wdvc.run(&opts);