提交 edf7e769 编写于 作者: J joregan

silence more useless warnings

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@432 d0cd1f9f-072b-0410-8dd7-cf729c803f20
上级 c2fd3fa1
......@@ -18,12 +18,13 @@
*
**********************************************************************/
#include "mfcpch.h"
// Include automatically generated configuration file if running autoconf.
#ifdef HAVE_CONFIG_H
#include "config_auto.h"
#endif
#include "mfcpch.h"
#ifdef __UNIX__
#include <assert.h>
#endif
......@@ -45,6 +46,11 @@
#include "secname.h"
#include "tesseractclass.h"
#ifdef _MSC_VER
#pragma warning(disable:4244) // Conversion warnings
#pragma warning(disable:4305) // int/float warnings
#endif
inT32 demo_word = 0;
#define WINDOWNAMESIZE 13 /*max size of name */
......
......@@ -24,6 +24,10 @@
#include "ocrblock.h"
//#include "structures.h"
#ifdef _MSC_VER
#pragma warning(disable:4244) // Conversion warnings
#endif
static ERRCODE BADFRAGMENTS = "Couldn't find matching fragment ends";
ELISTIZE (FRAGMENT)
......
......@@ -29,6 +29,11 @@
#include "stopper.h"
#include "unicharset.h"
#ifdef _MSC_VER
#pragma warning(disable:4244) // Conversion warnings
#pragma warning(disable:4018) // signed/unsigned warnings
#endif
namespace tesseract {
int Dict::valid_word(const char *string) {
WERD_CHOICE word(string, getUnicharset());
......
......@@ -36,6 +36,11 @@
#include "strngs.h"
#include "tprintf.h"
#ifdef _MSC_VER
#pragma warning(disable:4244) // Conversion warnings
#pragma warning(disable:4800) // int/bool warnings
#endif
/*----------------------------------------------------------------------
V a r i a b l e s
----------------------------------------------------------------------*/
......
......@@ -18,6 +18,10 @@
#include "dict.h"
#ifdef _MSC_VER
#pragma warning(disable:4244) // Conversion warnings
#endif
namespace tesseract {
class Image;
......
......@@ -55,6 +55,11 @@
#include "image.h"
#include "ccutil.h"
#ifdef _MSC_VER
#pragma warning(disable:4244) // Conversion warnings
#pragma warning(disable:4800) // int/bool warnings
#endif
int permutation_count; // Used in metrics.cpp.
/*----------------------------------------------------------------------
V a r i a b l e s
......
......@@ -45,6 +45,11 @@
#include <assert.h>
#endif
#ifdef _MSC_VER
#pragma warning(disable:4244) // Conversion warnings
#pragma warning(disable:4800) // int/bool warnings
#endif
/* these are kludges - add appropriate .h file later */
/* from adaptmatch.cpp */
#define MAX_WERD_SIZE 100
......
......@@ -33,6 +33,11 @@
#include "freelist.h"
#include "helpers.h"
#ifdef _MSC_VER
#pragma warning(disable:4244) // Conversion warnings
#pragma warning(disable:4800) // int/bool warnings
#endif
namespace tesseract {
bool Trie::edge_char_of(NODE_REF node_ref, NODE_REF next_node,
......
......@@ -71,6 +71,7 @@
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/NODEFAULTLIB:library"
AdditionalDependencies="user32.lib ../tessdll.lib"
OutputFile=".\../dlltest.exe"
LinkIncremental="1"
......
......@@ -27,6 +27,10 @@
#include "img.h"
#include "imgbmp.h"
#ifdef _MSC_VER
#pragma warning(disable:4244) // Conversion warnings
#endif
typedef struct
{ // bmfh
char bfType1; //'B'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册