Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6621 closed defect (fixed)

Compilation warning : array subscript is above array bounds

Reported by: SF/superzanac Owned by: digitall
Priority: normal Component: Engine: TsAGE
Keywords: Cc:
Game: Return to Ringworld

Description

Scummvn 1.7.0 from today sources

Compilation warnings - array subscript is above array bounds

Host platform - Win32, target plat - Symbian/ARM
Compiler - GCCE 4.4.1 from Codesourcery for Symbian

Compiler's log:

/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp: In member function 'void TsAGE::Ringworld2::Scene1337::handlePlayer1()':
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:5982: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:5987: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:5982: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:5982: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:5982: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:4935: warning: array subscript is above array bounds

Ticket imported from: bugs/6621.

Change History (9)

comment:1 Changed 5 years ago by digitall

Owner: set to digitall
Resolution: fixed
Status: newpending

comment:2 Changed 5 years ago by digitall

Fixed warnings in 560812bd5e46240c3a9ec074a11ba9169e95ce19.

zanac: Please try compiling with the latest Git master and see if all the warnings are fixed please?

comment:3 Changed 5 years ago by SF/superzanac

Still one warning remain:

/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp: In member function 'void TsAGE::Ringworld2::Scene1337::handlePlayer1()':
/Symbian/Projects/SDL/scummvm/engines/tsage/ringworld2/ringworld2_scenes1.cpp:5997: warning: array subscript is above array bounds

comment:4 Changed 5 years ago by digitall

Corrected fix in 06b01b8920ec36b31fe9bb758a75bbaf9809686d.

zanac: Please try compiling with the latest Git master and see if all the warnings are fixed now please?

comment:5 Changed 5 years ago by SF/superzanac

digitall : fixed

comment:6 Changed 5 years ago by digitall

Errm... Not sure what you meant by erasing the last comment, but assuming your original comment of "problem fixed" is correct. Closing.

comment:7 Changed 5 years ago by digitall

Oh and in future, don't edit comments. It is confusing and the e-mail notifications mismatch anyway, so it is likely your meaning may get lost.

comment:8 Changed 5 years ago by digitall

Status: pendingclosed

comment:9 Changed 5 years ago by SF/superzanac

digitall, sorry about that, I test another compilation warning but write here.

Note: See TracTickets for help on using tickets.