[Gdal-dev] An unsigned integer is being compared to zero.

Martin Spott Martin.Spott at mgras.net
Tue Jan 2 09:30:20 EST 2007


Martin Spott wrote:

> GDAL-1.4.0beta2:
> 
> (cd port; make)
> make[1]: Entering directory `/usr/local/src/gdal-1.4.0beta2/port'

>  CC -O2 -use_readonly_const -rdata_shared -woff
>    1001,1012,1014,1110,1116,1155,1172,1174,1234,1401 -woff
>    1460,1551,1552,1681
>    -OPT:roundoff=0:Olimit=0:div_split=ON:alias=typed:fast_io=ON
>    -OPT:got_call_conversion=ON:reorg_common=ON:rsqrt=ON:swp=ON
>    -LANG:exceptions=ON -I/opt/include -I/usr/freeware/include -Wl,-rpath
>    -Wl,/usr/freeware/lib32 -Wl,-rpath -Wl,. -DOGR_ENABLED
>    -I/usr/freeware/include -Xcpluscomm
>    -I/usr/local/src/gdal-1.4.0beta2/port -c cpl_conv.cpp -o cpl_conv.o
> cc-1183 CC: WARNING File = cpl_conv.cpp, Line = 302
>   An unsigned integer is being compared to zero.
> 
>       if( nSize < 0 )
>                 ^
> 
> cc-1183 CC: WARNING File = cpl_conv.cpp, Line = 356
>   An unsigned integer is being compared to zero.
> 
>       if( nNewSize < 0 )
>                    ^
> 
> cc-1020 CC: ERROR File = cpl_conv.cpp, Line = 965
>   The identifier "atoll" is undefined.
> 
>       iValue = atoll( pszValue );

Ok, apparently the 'configure' test for 'atoll' works different from
what's expected in the source code of GDAL, the same is with
'copysignf' (which triggers difficulties in 'port/cpl_strtod.cpp'),

Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------



More information about the Gdal-dev mailing list