diff --git a/src/ccmain/adaptions.cpp b/src/ccmain/adaptions.cpp index 5623eb68..fe31fbbf 100644 --- a/src/ccmain/adaptions.cpp +++ b/src/ccmain/adaptions.cpp @@ -18,11 +18,6 @@ * **********************************************************************/ -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#pragma warning(disable:4305) // int/float warnings -#endif - #ifdef __UNIX__ #include #endif diff --git a/src/ccmain/applybox.cpp b/src/ccmain/applybox.cpp index 70e56d3e..2a2545eb 100644 --- a/src/ccmain/applybox.cpp +++ b/src/ccmain/applybox.cpp @@ -17,10 +17,6 @@ * **********************************************************************/ -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif - #include #include #ifdef __UNIX__ diff --git a/src/ccmain/docqual.cpp b/src/ccmain/docqual.cpp index cfa2a4c6..ee7a6d6c 100644 --- a/src/ccmain/docqual.cpp +++ b/src/ccmain/docqual.cpp @@ -17,10 +17,6 @@ * **********************************************************************/ -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif - #include #include "docqual.h" #include "reject.h" diff --git a/src/ccmain/output.cpp b/src/ccmain/output.cpp index f0ef3c93..b9023325 100644 --- a/src/ccmain/output.cpp +++ b/src/ccmain/output.cpp @@ -17,10 +17,6 @@ * **********************************************************************/ -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif - #include #include #ifdef __UNIX__ diff --git a/src/ccmain/pagesegmain.cpp b/src/ccmain/pagesegmain.cpp index ea4f5d69..0d62c6c3 100644 --- a/src/ccmain/pagesegmain.cpp +++ b/src/ccmain/pagesegmain.cpp @@ -24,9 +24,6 @@ #else #include #endif // _WIN32 -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif // Include automatically generated configuration file if running autoconf. #ifdef HAVE_CONFIG_H diff --git a/src/ccmain/pgedit.cpp b/src/ccmain/pgedit.cpp index 6f1ac7af..0025324e 100644 --- a/src/ccmain/pgedit.cpp +++ b/src/ccmain/pgedit.cpp @@ -17,10 +17,6 @@ * **********************************************************************/ -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif - // Include automatically generated configuration file if running autoconf. #ifdef HAVE_CONFIG_H #include "config_auto.h" diff --git a/src/ccmain/reject.cpp b/src/ccmain/reject.cpp index fbb09462..1e34e757 100644 --- a/src/ccmain/reject.cpp +++ b/src/ccmain/reject.cpp @@ -17,11 +17,6 @@ * **********************************************************************/ -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#pragma warning(disable:4305) // int/float warnings -#endif - #include "tessvars.h" #ifdef __UNIX__ #include diff --git a/src/ccmain/tessbox.cpp b/src/ccmain/tessbox.cpp index f198d149..64b3eb68 100644 --- a/src/ccmain/tessbox.cpp +++ b/src/ccmain/tessbox.cpp @@ -17,10 +17,6 @@ * **********************************************************************/ -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif - #include "mfoutline.h" #include "tessbox.h" #include "tesseractclass.h" diff --git a/src/ccmain/tfacepp.cpp b/src/ccmain/tfacepp.cpp index 85d00e6f..5a355f62 100644 --- a/src/ccmain/tfacepp.cpp +++ b/src/ccmain/tfacepp.cpp @@ -17,12 +17,6 @@ * **********************************************************************/ -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#pragma warning(disable:4305) // int/float warnings -#pragma warning(disable:4800) // int/bool warnings -#endif - #include #include "blamer.h" diff --git a/src/ccutil/tessdatamanager.cpp b/src/ccutil/tessdatamanager.cpp index a49a3b0d..d3a3968f 100644 --- a/src/ccutil/tessdatamanager.cpp +++ b/src/ccutil/tessdatamanager.cpp @@ -17,10 +17,6 @@ // /////////////////////////////////////////////////////////////////////// -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif - #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif diff --git a/src/dict/dawg.cpp b/src/dict/dawg.cpp index 51b9bae0..ebb3ac5b 100644 --- a/src/dict/dawg.cpp +++ b/src/dict/dawg.cpp @@ -26,10 +26,6 @@ I n c l u d e s ----------------------------------------------------------------------*/ -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#pragma warning(disable:4800) // int/bool warnings -#endif #include "dawg.h" #include "cutil.h" diff --git a/src/dict/dict.cpp b/src/dict/dict.cpp index 3804b7db..0433f8c8 100644 --- a/src/dict/dict.cpp +++ b/src/dict/dict.cpp @@ -21,9 +21,6 @@ #include "dict.h" #include "unicodes.h" -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif #include "tprintf.h" namespace tesseract { diff --git a/src/dict/stopper.cpp b/src/dict/stopper.cpp index 0bfcccf7..91cee438 100644 --- a/src/dict/stopper.cpp +++ b/src/dict/stopper.cpp @@ -36,11 +36,6 @@ #include "scanutils.h" #include "unichar.h" -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#pragma warning(disable:4800) // int/bool warnings -#endif - /*---------------------------------------------------------------------------- Private Code ----------------------------------------------------------------------------*/ diff --git a/src/dict/trie.cpp b/src/dict/trie.cpp index 177b0729..decce380 100644 --- a/src/dict/trie.cpp +++ b/src/dict/trie.cpp @@ -25,10 +25,7 @@ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#pragma warning(disable:4800) // int/bool warnings -#endif + #include "trie.h" #include "callcpp.h" diff --git a/src/textord/colfind.cpp b/src/textord/colfind.cpp index 147f6ea5..974b8040 100644 --- a/src/textord/colfind.cpp +++ b/src/textord/colfind.cpp @@ -18,10 +18,6 @@ // /////////////////////////////////////////////////////////////////////// -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif - // Include automatically generated configuration file if running autoconf. #ifdef HAVE_CONFIG_H #include "config_auto.h" diff --git a/src/textord/colpartition.cpp b/src/textord/colpartition.cpp index 8366ee8d..5deeceb6 100644 --- a/src/textord/colpartition.cpp +++ b/src/textord/colpartition.cpp @@ -18,10 +18,6 @@ // /////////////////////////////////////////////////////////////////////// -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif - #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif diff --git a/src/textord/imagefind.cpp b/src/textord/imagefind.cpp index ebf55d65..ed32c67b 100644 --- a/src/textord/imagefind.cpp +++ b/src/textord/imagefind.cpp @@ -18,10 +18,6 @@ // /////////////////////////////////////////////////////////////////////// -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif - #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif diff --git a/src/textord/linefind.cpp b/src/textord/linefind.cpp index 27c33fd4..69bd5a0f 100644 --- a/src/textord/linefind.cpp +++ b/src/textord/linefind.cpp @@ -18,10 +18,6 @@ // /////////////////////////////////////////////////////////////////////// -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif - #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif diff --git a/src/textord/strokewidth.cpp b/src/textord/strokewidth.cpp index e9e4496b..01b7d072 100644 --- a/src/textord/strokewidth.cpp +++ b/src/textord/strokewidth.cpp @@ -17,10 +17,6 @@ // /////////////////////////////////////////////////////////////////////// -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif - #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif diff --git a/src/textord/tablefind.cpp b/src/textord/tablefind.cpp index 38dd28d6..0d439014 100644 --- a/src/textord/tablefind.cpp +++ b/src/textord/tablefind.cpp @@ -17,10 +17,6 @@ // /////////////////////////////////////////////////////////////////////// -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif - #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif diff --git a/src/textord/tabvector.cpp b/src/textord/tabvector.cpp index 2bb2150d..6af6d70b 100644 --- a/src/textord/tabvector.cpp +++ b/src/textord/tabvector.cpp @@ -17,10 +17,6 @@ // /////////////////////////////////////////////////////////////////////// -#ifdef _MSC_VER -#pragma warning(disable:4244) // Conversion warnings -#endif - #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif diff --git a/src/viewer/scrollview.cpp b/src/viewer/scrollview.cpp index 855ce9e3..fdf7285c 100644 --- a/src/viewer/scrollview.cpp +++ b/src/viewer/scrollview.cpp @@ -36,12 +36,6 @@ #include "scrollview.h" -#ifdef _MSC_VER -#pragma warning(disable : 4786) // Don't give irrelevant warnings for stl -#pragma warning(disable : 4018) // signed/unsigned warnings -#pragma warning(disable : 4530) // exception warnings -#endif - const int kSvPort = 8461; const int kMaxMsgSize = 4096; const int kMaxIntPairSize = 45; // Holds %d,%d, for up to 64 bit. diff --git a/src/viewer/svutil.h b/src/viewer/svutil.h index 79dd0451..570dc005 100644 --- a/src/viewer/svutil.h +++ b/src/viewer/svutil.h @@ -31,7 +31,6 @@ #if defined(_MSC_VER) && _MSC_VER < 1900 #define snprintf _snprintf #endif -#pragma warning(disable:4786) #else #include "platform.h" #include