aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/Platform.h3
-rw-r--r--lexlib/LexerModule.h2
-rw-r--r--lexlib/PropSetSimple.cxx5
-rw-r--r--src/CharClassify.cxx5
-rw-r--r--src/RESearch.cxx5
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 <string.h>
#include <stdio.h>
-#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 <string>
#include <map>
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