Project

General

Profile

Bug #747

warnings require fixes

Added by sergepavlovsky over 15 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-08-11
% Done:

100%


Description

its good idea to have code compiled without warnings
some of them are definitely bugs like
doomsday/engine/portable/src/def_read.c:2425: warning: 'result' may be used uninitialized in this function
doomsday/engine/portable/src/dam_file.c:390: warning: array subscript is above array bounds
doomsday/engine/portable/src/m_misc.c:1133: warning: call to builtin_strncat_chk might overflow destination buffer
doomsday/engine/portable/src/m_misc.c:1145: warning: call to builtin_strncat_chk might overflow destination buffer
doomsday/engine/portable/src/r_extres.c:174: warning: call to builtin_strncat_chk might overflow destination buffer
doomsday/engine/portable/src/net_demo.c:150 warning: call to builtin_strncat_chk might overflow destination buffer
doomsday/plugins/common/src/m_ctrl.c:405: warning: cast from pointer to integer of different size
doomsday/plugins/common/src/hu_stuff.c:896,898,921,923: warning: array subscript has type 'char'
doomsday/plugins/common/src/hu_menu.c:3090,2653: warning: array subscript is above array bounds
many size mismatches probably are reason for instant crash of 64bit build
i've attached full build log

Also available in: Atom PDF