#1909 closed defect
Possible mistake in ImuseDigiSndMgr::getDataFromRegion()
Reported by: | eriktorbjorn | Owned by: | aquadran |
---|---|---|---|
Priority: | normal | Component: | Engine: SCUMM |
Version: | Keywords: | ||
Cc: | Game: |
Description
I'm getting the following warnings when compiling the latest CVS snapshot:
scumm/imuse_digi/dimuse_sndmgr.cpp: In member function `int32
Scumm::ImuseDigiSndMgr::getDataFromRegion(Scumm::ImuseDigiSndMgr::soundStruct*, int, byte**, int, int)': scumm/imuse_digi/dimuse_sndmgr.cpp:568: warning: declaration of `offset' shadows a parameter scumm/imuse_digi/dimuse_sndmgr.cpp:538: warning: shadowed declaration is here scumm/imuse_digi/dimuse_sndmgr.cpp:568: warning: declaration of `size' shadows a parameter scumm/imuse_digi/dimuse_sndmgr.cpp:538: warning: shadowed declaration is here
I don't dare to fix this myself since I don't currently have the means to test it, not to mention that my knowledge of this part of the code is limited to say the least.
Ticket imported from: #1110622. Ticket imported from: bugs/1909.
Change History (5)
comment:1 by , 20 years ago
Owner: | set to |
---|
comment:2 by , 20 years ago
comment:3 by , 20 years ago
Status: | new → closed |
---|
comment:4 by , 20 years ago
That fixes the shadowing of "offset", sure, but I was actually more worried about the shadowing of "size" since there are references to "size" after that block of code.
comment:5 by , 6 years ago
Component: | → Engine: SCUMM |
---|
it doesn't matter, but i 'll change 'offset' to 'offs' to prevent compiler warning.