[GRASS-dev] suspicious warnings while compiling GRASS trunk (r38973)

Ivan Shmakov oneingray at gmail.com
Sat Sep 5 02:09:55 EDT 2009


	When building GRASS trunk (as of r38973) on an amd64 system,
	I've spotted the following warnings that look a bit suspicious.

	I have no time now to investigate these further, but perhaps
	someone could take a look?

make[3]: Entering directory `/.../grass-trunk-r38973/lib/gis'
spawn.c:474: warning: cast from pointer to integer of different size
spawn.c:478: warning: cast from pointer to integer of different size
spawn.c:479: warning: cast from pointer to integer of different size
spawn.c:482: warning: cast from pointer to integer of different size
spawn.c:487: warning: cast from pointer to integer of different size
spawn.c:488: warning: cast from pointer to integer of different size
spawn.c:489: warning: cast from pointer to integer of different size
spawn.c:494: warning: cast from pointer to integer of different size
spawn.c:495: warning: cast from pointer to integer of different size
spawn.c:501: warning: cast from pointer to integer of different size
spawn.c:502: warning: cast from pointer to integer of different size
spawn.c:503: warning: cast from pointer to integer of different size
spawn.c:504: warning: cast from pointer to integer of different size
spawn.c:509: warning: cast from pointer to integer of different size
spawn.c:515: warning: cast from pointer to integer of different size
spawn.c:521: warning: cast from pointer to integer of different size
spawn.c:524: warning: cast from pointer to integer of different size
spawn.c:528: warning: cast from pointer to integer of different size
spawn.c:548: warning: cast from pointer to integer of different size
spawn.c:552: warning: cast from pointer to integer of different size
spawn.c:561: warning: cast from pointer to integer of different size
spawn.c:568: warning: cast from pointer to integer of different size
spawn.c:575: warning: cast from pointer to integer of different size
spawn.c:583: warning: cast from pointer to integer of different size
spawn.c:589: warning: cast from pointer to integer of different size
spawn.c:595: warning: cast from pointer to integer of different size
spawn.c:598: warning: cast from pointer to integer of different size
spawn.c:602: warning: cast from pointer to integer of different size

trim_dec.c:30: warning: 'return' with a value, in function returning void

make[3]: Entering directory `/.../grass-trunk-r38973/lib/gmath'
/.../grass-trunk-r38973/dist.x86_64-unknown-linux-gnu/include/grass/gmath.h:72: warning: parameter names (without types) in function declaration
/.../grass-trunk-r38973/dist.x86_64-unknown-linux-gnu/include/grass/gmath.h:74: warning: parameter names (without types) in function declaration
/.../grass-trunk-r38973/dist.x86_64-unknown-linux-gnu/include/grass/gmath.h:86: warning: parameter names (without types) in function declaration

make[3]: Entering directory `/.../grass-trunk-r38973/lib/cluster'
c_assign.c:34: warning: passing argument 1 of 'G_debug' makes integer from pointer without a cast
c_assign.c:34: warning: passing argument 2 of 'G_debug' makes pointer from integer without a cast

make[3]: Entering directory `/.../grass-trunk-r38973/lib/sites'
sites.c:621: warning: cast from pointer to integer of different size
sites.c:643: warning: cast from pointer to integer of different size
sites.c:660: warning: cast from pointer to integer of different size
sites.c:714: warning: cast from pointer to integer of different size
sites.c:714: warning: cast from pointer to integer of different size
sites.c:788: warning: cast from pointer to integer of different size
sites.c:790: warning: cast from pointer to integer of different size
sites.c:790: warning: cast from pointer to integer of different size
sites.c:796: warning: cast from pointer to integer of different size
sites.c:798: warning: cast from pointer to integer of different size
sites.c:798: warning: cast from pointer to integer of different size
sites.c:808: warning: cast from pointer to integer of different size
sites.c:810: warning: cast from pointer to integer of different size
sites.c:810: warning: cast from pointer to integer of different size
sites.c:814: warning: cast from pointer to integer of different size
sites.c:823: warning: cast from pointer to integer of different size
sites.c:836: warning: cast from pointer to integer of different size
sites.c:838: warning: cast from pointer to integer of different size
sites.c:838: warning: cast from pointer to integer of different size
sites.c:848: warning: cast from pointer to integer of different size
sites.c:850: warning: cast from pointer to integer of different size
sites.c:850: warning: cast from pointer to integer of different size
sites.c:858: warning: cast from pointer to integer of different size
sites.c:858: warning: cast from pointer to integer of different size
sites.c:872: warning: cast from pointer to integer of different size
sites.c:874: warning: cast from pointer to integer of different size
sites.c:874: warning: cast from pointer to integer of different size
sites.c:933: warning: cast from pointer to integer of different size
sites.c:947: warning: cast from pointer to integer of different size
sites.c:948: warning: cast from pointer to integer of different size
sites.c:961: warning: cast from pointer to integer of different size
sites.c:963: warning: cast from pointer to integer of different size
sites.c:963: warning: cast from pointer to integer of different size
sites.c:966: warning: cast from pointer to integer of different size

make[2]: Entering directory `/.../grass-trunk-r38973/display/d.legend'
main.c:377: warning: passing argument 1 of 'Rast_get_c_cat' makes pointer from integer without a cast
main.c:408: warning: passing argument 1 of 'Rast_get_c_cat' from incompatible pointer type
main.c:607: warning: passing argument 1 of 'Rast_get_c_cat' makes pointer from integer without a cast
main.c:783: warning: passing argument 1 of 'Rast_get_c_cat' from incompatible pointer type
main.c:785: warning: passing argument 1 of 'Rast_get_c_cat' from incompatible pointer type

make[2]: Entering directory `/.../grass-trunk-r38973/raster/r.circle'
main.c:44: warning: cast from pointer to integer of different size

make[2]: Entering directory `/.../grass-trunk-r38973/raster/r.in.poly'
local_proto.h:3: warning: 'struct Categories' declared inside parameter list
local_proto.h:3: warning: its scope is only this definition or declaration, which is probably not what you want

make[3]: Entering directory `/.../grass-trunk-r38973/raster/r.li/r.li.shape'
map.c:344: warning: cast to pointer from integer of different size

make[3]: Entering directory `/.../grass-trunk-r38973/raster/r.li/r.li.padsd'
xround.c:24: warning: conflicting types for built-in function 'round'

make[2]: Entering directory `/.../grass-trunk-r38973/raster/r.out.vtk'
pv.h:33: warning: 'struct Colors' declared inside parameter list
pv.h:33: warning: its scope is only this definition or declaration, which is probably not what you want
pv.h:33: warning: 'struct Colors' declared inside parameter list
pv.h:33: warning: its scope is only this definition or declaration, which is probably not what you want

make[2]: Entering directory `/.../grass-trunk-r38973/raster/r.statistics2'
method.h:33: warning: 'struct Categories' declared inside parameter list
method.h:33: warning: its scope is only this definition or declaration, which is probably not what you want
method.h:36: warning: 'struct Categories' declared inside parameter list
method.h:42: warning: 'struct Categories' declared inside parameter list
method.h:45: warning: 'struct Categories' declared inside parameter list
method.h:48: warning: 'struct Categories' declared inside parameter list
method.h:51: warning: 'struct Categories' declared inside parameter list
method.h:54: warning: 'struct Categories' declared inside parameter list
method.h:57: warning: 'struct Categories' declared inside parameter list
method.h:60: warning: 'struct Categories' declared inside parameter list
method.h:63: warning: 'struct Categories' declared inside parameter list
method.h:66: warning: 'struct Categories' declared inside parameter list
method.h:69: warning: 'struct Categories' declared inside parameter list

make[2]: Entering directory `/.../grass-trunk-r38973/raster/r.to.vect'
areas_io.c:360: warning: passing argument 1 of 'Rast_get_c_cat' from incompatible pointer type

make[2]: Entering directory `/.../grass-trunk-r38973/vector/v.normal'
main.c:124: warning: cast from pointer to integer of different size

make[3]: Entering directory `/.../grass-trunk-r38973/ps/ps.map'
ps_fclrtbl.c:217: warning: cast from pointer to integer of different size
ps_fclrtbl.c:217: warning: cast from pointer to integer of different size

make[1]: Entering directory `/.../grass-trunk-r38973/gem'
tools.c:56: warning: comparison with string literal results in unspecified behavior

-- 
FSF associate member #7257


More information about the grass-dev mailing list