From 0506aaf436898484715308a43ed3049adfce2fe2 Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Sun, 29 Dec 2019 16:36:22 +0100 Subject: [PATCH] Stop silencing disabled C4786 MSVC warning This is old, and disabled by default in new MSVC compilers. It was purely infomational warning: "object name was truncated to 'number' characters in the debug information" Regardless, even if we'll decide to silence it again for any reason, then it should be configured in VS project and not using ifdefed pragma in the code. --- include/control.h | 5 ----- include/setup.h | 6 ------ 2 files changed, 11 deletions(-) diff --git a/include/control.h b/include/control.h index 15553dfb..ad4b2f4f 100644 --- a/include/control.h +++ b/include/control.h @@ -16,14 +16,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - #ifndef DOSBOX_CONTROL_H #define DOSBOX_CONTROL_H -#ifdef _MSC_VER -#pragma warning ( disable : 4786 ) -#endif - #ifndef DOSBOX_PROGRAMS_H #include "programs.h" #endif diff --git a/include/setup.h b/include/setup.h index bf70309f..dcc16b03 100644 --- a/include/setup.h +++ b/include/setup.h @@ -16,15 +16,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - #ifndef DOSBOX_SETUP_H #define DOSBOX_SETUP_H -#ifdef _MSC_VER -#pragma warning ( disable : 4786 ) -#endif - - #ifndef CH_LIST #define CH_LIST #include