From 87c435a58c291770bedbc1302a86dacff14cac4f Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 29 Apr 2014 11:55:23 +1000 Subject: Stop disabling warnings where no longer needed. --- include/Platform.h | 3 ++- lexlib/LexerModule.h | 2 +- lexlib/PropSetSimple.cxx | 5 ----- src/CharClassify.cxx | 5 ----- src/RESearch.cxx | 5 ----- 5 files changed, 3 insertions(+), 17 deletions(-) diff --git a/include/Platform.h b/include/Platform.h index d83e7f26c..7683c9c84 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -518,7 +518,8 @@ public: // Shut up annoying Visual C++ warnings: #ifdef _MSC_VER -#pragma warning(disable: 4244 4309 4514 4710) +// This is: conversion from X to Y, possible loss of data +#pragma warning(disable: 4244) #endif #if defined(__GNUC__) && defined(SCINTILLA_QT) diff --git a/lexlib/LexerModule.h b/lexlib/LexerModule.h index e502541b2..35fa30c69 100644 --- a/lexlib/LexerModule.h +++ b/lexlib/LexerModule.h @@ -72,7 +72,7 @@ inline int Maximum(int a, int b) { // Shut up annoying Visual C++ warnings: #ifdef _MSC_VER -#pragma warning(disable: 4244 4309 4514 4710) +#pragma warning(disable: 4244 4309) #endif #ifdef SCI_NAMESPACE diff --git a/lexlib/PropSetSimple.cxx b/lexlib/PropSetSimple.cxx index 6f4553a07..6592d70eb 100644 --- a/lexlib/PropSetSimple.cxx +++ b/lexlib/PropSetSimple.cxx @@ -11,11 +11,6 @@ #include #include -#ifdef _MSC_VER -// Visual C++ doesn't like unreachable code in its own headers. -#pragma warning(disable: 4018 4100 4245 4511 4512 4663 4702) -#endif - #include #include diff --git a/src/CharClassify.cxx b/src/CharClassify.cxx index 7e3db737e..cc431630d 100644 --- a/src/CharClassify.cxx +++ b/src/CharClassify.cxx @@ -14,11 +14,6 @@ using namespace Scintilla; #endif -// Shut up annoying Visual C++ warnings: -#ifdef _MSC_VER -#pragma warning(disable: 4514) -#endif - CharClassify::CharClassify() { SetDefaultCharClasses(true); } diff --git a/src/RESearch.cxx b/src/RESearch.cxx index 81eddf013..1958773cb 100644 --- a/src/RESearch.cxx +++ b/src/RESearch.cxx @@ -207,11 +207,6 @@ #include "CharClassify.h" #include "RESearch.h" -// Shut up annoying Visual C++ warnings: -#ifdef _MSC_VER -#pragma warning(disable: 4514) -#endif - #ifdef SCI_NAMESPACE using namespace Scintilla; #endif -- cgit v1.2.3