Skip to content

Commit

Permalink
silence more useless warnings
Browse files Browse the repository at this point in the history
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@432 d0cd1f9f-072b-0410-8dd7-cf729c803f20
  • Loading branch information
joregan committed Jul 21, 2010
1 parent c2fd3fa commit edf7e76
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ccmain/adaptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 */
Expand Down
4 changes: 4 additions & 0 deletions ccmain/tstruct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions dict/conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
5 changes: 5 additions & 0 deletions dict/dawg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------------------------------------------------------*/
Expand Down
4 changes: 4 additions & 0 deletions dict/dict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

#include "dict.h"

#ifdef _MSC_VER
#pragma warning(disable:4244) // Conversion warnings
#endif

namespace tesseract {

class Image;
Expand Down
5 changes: 5 additions & 0 deletions dict/permute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions dict/stopper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions dict/trie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions dlltest/dlltest.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/NODEFAULTLIB:library"
AdditionalDependencies="user32.lib ../tessdll.lib"
OutputFile=".\../dlltest.exe"
LinkIncremental="1"
Expand Down
4 changes: 4 additions & 0 deletions image/imgbmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit edf7e76

Please sign in to comment.