فهرست منبع

Fixed 2 compiler warnings

Fixes #2346

Thanks to @hurtsky
Lemongrass3110 7 سال پیش
والد
کامیت
3183c39cfe
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 2 0
      src/char/int_storage.cpp
  2. 1 1
      src/common/yamlwrapper.cpp

+ 2 - 0
src/char/int_storage.cpp

@@ -1,6 +1,8 @@
 // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
 // For more information, see LICENCE in the main folder
 
+#pragma warning(disable:4800)
+
 #include "int_storage.h"
 
 #include "../common/malloc.h"

+ 1 - 1
src/common/yamlwrapper.cpp

@@ -50,7 +50,7 @@ yamlwrapper* yaml_load_file(const char* file_name) {
 	} catch (YAML::ParserException &e) {
 		ShowError("YAML Exception Caught: %s\n", e.what());
 		return NULL;
-	} catch (YAML::BadFile &e) {
+	} catch (YAML::BadFile) {
 		return NULL;
 	}