From 3183c39cfe78734d724337cefc366a6c011443ea Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Sun, 20 Aug 2017 15:01:05 +0200 Subject: [PATCH] Fixed 2 compiler warnings Fixes #2346 Thanks to @hurtsky --- src/char/int_storage.cpp | 2 ++ src/common/yamlwrapper.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/char/int_storage.cpp b/src/char/int_storage.cpp index c450882cb4..e3cb96c34a 100644 --- a/src/char/int_storage.cpp +++ b/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" diff --git a/src/common/yamlwrapper.cpp b/src/common/yamlwrapper.cpp index 079cc324de..33ab29f1b4 100644 --- a/src/common/yamlwrapper.cpp +++ b/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; }