bug-ocrad
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ocrad] Version 0.21-pre1 of GNU Ocrad released


From: Tilman Hausherr
Subject: Re: [Bug-ocrad] Version 0.21-pre1 of GNU Ocrad released
Date: Sat, 21 Aug 2010 18:52:24 +0200

On Sat, 21 Aug 2010 18:42:30 +0200, Antonio Diaz Diaz wrote:

>What warnings?

gcc4 does not bring any warnings. VS2010 brings these in 32bit:


1>------ Rebuild All started: Project: ocrad, Configuration: Release
Win32 ------
1>Build started 21.08.2010 18:33:22.
1>_PrepareForClean:
1>  Deleting file "Release\ocrad.lastbuildstate".
1>InitializeBuildStatus:
1>  Creating "Release\ocrad.unsuccessfulbuild" because "AlwaysCreate"
was specified.
1>ClCompile:
1>  arg_parser.cc
1>  bitmap.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>  blob.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>  character.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>  character_r11.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>  character_r12.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>  character_r13.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>  common.cc
1>  feats.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>  feats_test0.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>  feats_test1.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>  main.cc
1>main.cc(74): warning C4996: 'strerror': This function or variable may
be unsafe. Consider using strerror_s instead. To disable deprecation,
use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\string.h(157) : see declaration of 'strerror'
1>main.cc(306): warning C4996: 'fopen': This function or variable may be
unsafe. Consider using fopen_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
1>main.cc(307): warning C4996: 'fopen': This function or variable may be
unsafe. Consider using fopen_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
1>main.cc(311): warning C4996: 'fopen': This function or variable may be
unsafe. Consider using fopen_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
1>main.cc(334): warning C4996: 'fopen': This function or variable may be
unsafe. Consider using fopen_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
1>main.cc(359): warning C4996: 'fopen': This function or variable may be
unsafe. Consider using fopen_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
1>main.cc(369): warning C4996: 'setmode': The POSIX name for this item
is deprecated. Instead, use the ISO C++ conformant name: _setmode. See
online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\io.h(314) : see declaration of 'setmode'
1>main.cc(369): warning C4996: 'fileno': The POSIX name for this item is
deprecated. Instead, use the ISO C++ conformant name: _fileno. See
online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdio.h(723) : see declaration of 'fileno'
1>main.cc(370): warning C4996: 'setmode': The POSIX name for this item
is deprecated. Instead, use the ISO C++ conformant name: _setmode. See
online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\io.h(314) : see declaration of 'setmode'
1>  mask.cc
1>  page_image.cc
1>  page_image_io.cc
1>  profile.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>profile.cc(198): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(206): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(207): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(211): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(213): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(216): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(225): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(237): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(240): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(241): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(242): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(243): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(250): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(254): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(261): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(265): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(274): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(281): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(290): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(296): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(304): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(313): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(317): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(325): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(327): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(333): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(335): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(338): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(342): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(398): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(406): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(415): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(425): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(430): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(434): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(443): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(453): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(467): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(476): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(487): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(488): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(497): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(501): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>  rational.cc
1>  rectangle.cc
1>  textblock.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>  textline.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>  Compiling...
1>  textline_r2.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>  textpage.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>  track.cc
1>  ucs.cc
1>Link:
1>  Generating code
1>  Finished generating code
1>  ocrad.vcxproj -> XXXXX\ocrad\Release\ocrad.exe
1>FinalizeBuildStatus:
1>  Deleting file "Release\ocrad.unsuccessfulbuild".
1>  Touching "Release\ocrad.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:30.24
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========


and these with 64 bit:


1>------ Rebuild All started: Project: ocrad, Configuration: Release x64
------
1>Build started 21.08.2010 18:34:32.
1>_PrepareForClean:
1>  Deleting file "x64\Release\ocrad.lastbuildstate".
1>InitializeBuildStatus:
1>  Creating "x64\Release\ocrad.unsuccessfulbuild" because
"AlwaysCreate" was specified.
1>ClCompile:
1>  arg_parser.cc
1>XXXXX\ocrad\ocrad\arg_parser.h(90): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>  bitmap.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>  blob.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>XXXXX\ocrad\ocrad\blob.h(49): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>blob.cc(38): warning C4267: '=' : conversion from 'size_t' to 'int',
possible loss of data
1>blob.cc(58): warning C4267: '=' : conversion from 'size_t' to 'int',
possible loss of data
1>blob.cc(70): warning C4267: 'initializing' : conversion from 'size_t'
to 'int', possible loss of data
1>blob.cc(234): warning C4267: 'initializing' : conversion from 'size_t'
to 'int', possible loss of data
1>  character.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>XXXXX\ocrad\ocrad\blob.h(49): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(58): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(72): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>  character_r11.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>XXXXX\ocrad\ocrad\blob.h(49): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(58): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(72): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\profile.h(47): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>  character_r12.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>XXXXX\ocrad\ocrad\blob.h(49): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(58): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(72): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\profile.h(47): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>  character_r13.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>XXXXX\ocrad\ocrad\blob.h(49): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(58): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(72): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\profile.h(47): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>  common.cc
1>  feats.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>XXXXX\ocrad\ocrad\blob.h(49): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\profile.h(47): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>  feats_test0.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>XXXXX\ocrad\ocrad\blob.h(49): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\profile.h(47): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>  feats_test1.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>XXXXX\ocrad\ocrad\blob.h(49): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\profile.h(47): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>  main.cc
1>XXXXX\ocrad\ocrad\arg_parser.h(90): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\textpage.h(32): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>main.cc(74): warning C4996: 'strerror': This function or variable may
be unsafe. Consider using strerror_s instead. To disable deprecation,
use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\string.h(157) : see declaration of 'strerror'
1>main.cc(306): warning C4996: 'fopen': This function or variable may be
unsafe. Consider using fopen_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
1>main.cc(307): warning C4996: 'fopen': This function or variable may be
unsafe. Consider using fopen_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
1>main.cc(311): warning C4996: 'fopen': This function or variable may be
unsafe. Consider using fopen_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
1>main.cc(334): warning C4996: 'fopen': This function or variable may be
unsafe. Consider using fopen_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
1>main.cc(359): warning C4996: 'fopen': This function or variable may be
unsafe. Consider using fopen_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
1>main.cc(369): warning C4996: 'setmode': The POSIX name for this item
is deprecated. Instead, use the ISO C++ conformant name: _setmode. See
online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\io.h(314) : see declaration of 'setmode'
1>main.cc(369): warning C4996: 'fileno': The POSIX name for this item is
deprecated. Instead, use the ISO C++ conformant name: _fileno. See
online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdio.h(723) : see declaration of 'fileno'
1>main.cc(370): warning C4996: 'setmode': The POSIX name for this item
is deprecated. Instead, use the ISO C++ conformant name: _setmode. See
online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\io.h(314) : see declaration of 'setmode'
1>  mask.cc
1>  page_image.cc
1>XXXXX\ocrad\ocrad\track.h(63): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>page_image.cc(103): warning C4267: 'initializing' : conversion from
'size_t' to 'const int', possible loss of data
1>page_image.cc(103): warning C4267: 'initializing' : conversion from
'size_t' to 'const int', possible loss of data
1>page_image.cc(140): warning C4267: 'initializing' : conversion from
'size_t' to 'const int', possible loss of data
1>page_image.cc(140): warning C4267: 'initializing' : conversion from
'size_t' to 'const int', possible loss of data
1>page_image.cc(190): warning C4267: 'initializing' : conversion from
'size_t' to 'const int', possible loss of data
1>page_image.cc(190): warning C4267: 'initializing' : conversion from
'size_t' to 'const int', possible loss of data
1>page_image.cc(211): warning C4267: 'initializing' : conversion from
'size_t' to 'const int', possible loss of data
1>page_image.cc(219): warning C4267: 'initializing' : conversion from
'size_t' to 'int', possible loss of data
1>page_image.cc(389): warning C4267: 'initializing' : conversion from
'size_t' to 'int', possible loss of data
1>page_image.cc(396): warning C4267: 'initializing' : conversion from
'size_t' to 'int', possible loss of data
1>page_image.cc(401): warning C4267: 'argument' : conversion from
'size_t' to 'const int', possible loss of data
1>page_image.cc(402): warning C4267: 'argument' : conversion from
'size_t' to 'const int', possible loss of data
1>page_image.cc(498): warning C4267: 'argument' : conversion from
'size_t' to 'const int', possible loss of data
1>page_image.cc(499): warning C4267: 'argument' : conversion from
'size_t' to 'const int', possible loss of data
1>  page_image_io.cc
1>  profile.cc
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>XXXXX\ocrad\ocrad\blob.h(49): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\profile.h(47): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>profile.cc(198): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(206): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(207): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(211): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(213): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(216): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(225): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(237): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(240): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(241): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(242): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(243): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(250): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(254): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(261): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(265): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(274): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(281): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(290): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(296): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(304): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(313): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(317): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(325): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(327): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(333): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(335): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(338): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(342): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(398): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(406): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(415): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(425): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(430): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(434): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(443): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(453): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(467): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(476): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(487): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(488): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(497): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>profile.cc(501): warning C4800: 'signed char' : forcing value to bool
'true' or 'false' (performance warning)
1>  rational.cc
1>  rectangle.cc
1>  textblock.cc
1>XXXXX\ocrad\ocrad\track.h(63): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>XXXXX\ocrad\ocrad\blob.h(49): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(58): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(72): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\textline.h(38): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\textblock.h(30): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>  textline.cc
1>XXXXX\ocrad\ocrad\track.h(63): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>XXXXX\ocrad\ocrad\blob.h(49): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(58): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(72): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\textline.h(38): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>  Compiling...
1>  textline_r2.cc
1>XXXXX\ocrad\ocrad\track.h(63): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>XXXXX\ocrad\ocrad\blob.h(49): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(58): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(72): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\textline.h(38): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>  textpage.cc
1>XXXXX\ocrad\ocrad\track.h(63): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\bitmap.h(50): warning C4800: 'const unsigned char' :
forcing value to bool 'true' or 'false' (performance warning)
1>XXXXX\ocrad\ocrad\blob.h(49): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(58): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\character.h(72): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\textline.h(38): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\textblock.h(30): warning C4267: 'return' :
conversion from 'size_t' to 'int', possible loss of data
1>XXXXX\ocrad\ocrad\textpage.h(32): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>textpage.cc(61): warning C4267: '+=' : conversion from 'size_t' to
'int', possible loss of data
1>textpage.cc(99): warning C4267: '=' : conversion from 'size_t' to
'int', possible loss of data
1>textpage.cc(111): warning C4267: 'initializing' : conversion from
'size_t' to 'int', possible loss of data
1>textpage.cc(125): warning C4267: 'initializing' : conversion from
'size_t' to 'int', possible loss of data
1>textpage.cc(143): warning C4267: 'initializing' : conversion from
'size_t' to 'int', possible loss of data
1>textpage.cc(164): warning C4267: 'initializing' : conversion from
'size_t' to 'int', possible loss of data
1>textpage.cc(231): warning C4267: 'initializing' : conversion from
'size_t' to 'unsigned int', possible loss of data
1>textpage.cc(322): warning C4267: 'argument' : conversion from 'size_t'
to 'int', possible loss of data
1>textpage.cc(355): warning C4267: 'return' : conversion from 'size_t'
to 'int', possible loss of data
1>  track.cc
1>XXXXX\ocrad\ocrad\track.h(63): warning C4267: 'return' : conversion
from 'size_t' to 'int', possible loss of data
1>track.cc(61): warning C4267: 'initializing' : conversion from 'size_t'
to 'const int', possible loss of data
1>track.cc(78): warning C4267: 'initializing' : conversion from 'size_t'
to 'const int', possible loss of data
1>track.cc(94): warning C4267: 'initializing' : conversion from 'size_t'
to 'const int', possible loss of data
1>track.cc(233): warning C4267: '=' : conversion from 'size_t' to 'int',
possible loss of data
1>  ucs.cc
1>Link:
1>  Generating code
1>  Finished generating code
1>  ocrad.vcxproj -> XXXXX\ocrad\x64\Release\ocrad.exe
1>FinalizeBuildStatus:
1>  Deleting file "x64\Release\ocrad.unsuccessfulbuild".
1>  Touching "x64\Release\ocrad.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:31.24
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========


>Didn't the authors of your compiler ever heard about implicit type 
>conversion?
>http://en.wikipedia.org/wiki/Type_conversion#Implicit_type_conversion
>

Of course they know, but they still warn about it.

>> there are more warnings (especially when compiling for 64bit, because
>> you're not using size_t type for numbers based on sizes), but this is a
>> small start.
>
>No, this is the end. I do not plan to use size_t, off_t and the like 
>anytime soon. In page_image_io.cc (line 247) I verify that the number of 
>pixels in the image is no larger than INT_MAX and then I use int for all 
>sizes, avoiding more conversion issues while being sure that overflows 
>won't happen.

Maybe, but the compiler won't take that into consideration. I did look
at some of the warnings, and I can confirm that the code is safe.
However this is still risky in the future IMO.

>On projects where 32 bit sizes are not enough I simply use long long 
>instead of int.
>
>> While most warnings are just that, they "mask" warnings
>> that might really have a meaning, and they're scary for newbies.
>
>Then, please, show me the warnings with real meaning. About the newbies, 
>I hope they get scared enough as to migrate to GCC or even to GNU/Linux. :-)

Ok, I accept that OCRAD is part of a conspiracy to establish the new gnu
world order and won't bother you with warnings again :-)

Tilman


>
>
>Regards,
>Antonio.
>
>_______________________________________________
>Bug-ocrad mailing list
>address@hidden
>http://lists.gnu.org/mailman/listinfo/bug-ocrad



reply via email to

[Prev in Thread] Current Thread [Next in Thread]