[ scummvm-Bugs-1182903 ] Compilation error while trying to compile with gcc-4.0

SourceForge.net noreply at sourceforge.net
Thu Apr 14 11:22:12 CEST 2005


Bugs item #1182903, was opened at 2005-04-14 11:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=1182903&group_id=37116

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Aron Nilsson (arni_se)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compilation error while trying to compile with gcc-4.0

Initial Comment:
When trying to compile ScummVM with a prerelease of GCC
4.0 (as supplied in Fedora Core development) I get this
compile error:

g++
-Wp,-MMD,"scumm/.deps/imuse.d",-MQ,"scumm/imuse.o",-MP
-Wall -g -ansi -W -Wno-unused-parameter -O
-Wuninitialized -Wno-long-long -Wno-multichar
-Wno-unknown-pragmas -pedantic -Wpointer-arith
-Wcast-qual -Wconversion -Wshadow -Wimplicit -Wundef
-Wnon-virtual-dtor -Wno-reorder -Wwrite-strings
-fcheck-new -Wctor-dtor-privacy  -DHAVE_CONFIG_H -DUNIX
-DDISABLE_KYRA -DDISABLE_GOB -I. -I. -I./common
-I/usr/include/SDL -D_REENTRANT -Itest/cxxtest -c
scumm/imuse.cpp -o scumm/imuse.o
./scumm/music.h:40: warning: 'class Scumm::MusicEngine'
only defines private constructors and has no friends
./scumm/instrument.h:35: warning: 'class
Scumm::InstrumentInternal' only defines private
constructors and has no friends
./scumm/instrument.h:35: warning: 'class
Scumm::InstrumentInternal' has virtual functions but
non-virtual destructor
./scumm/instrument.h: In member function
'Scumm::Instrument::operator int()':
./scumm/instrument.h:76: error: cast from
'Scumm::InstrumentInternal*' to 'int' loses precision
./sound/mididrv.h: At global scope:
./sound/mididrv.h:159: warning: 'class MidiChannel'
only defines private constructors and has no friends
./sound/mididrv.h:159: warning: 'class MidiChannel' has
virtual functions but non-virtual destructor
./common/str.h:104: warning: 'class Common::StringList'
only defines private constructors and has no friends
./common/stream.h:34: warning: 'class
Common::WriteStream' only defines private constructors
and has no friends
./common/stream.h:34: warning: 'class
Common::WriteStream' has virtual functions but
non-virtual destructor
./common/stream.h:99: warning: 'class
Common::ReadStream' only defines private constructors
and has no friends
./common/stream.h:99: warning: 'class
Common::ReadStream' has virtual functions but
non-virtual destructor
./common/stream.h:175: warning: 'class
Common::SeekableReadStream' only defines private
constructors and has no friends
./common/stream.h:175: warning: 'class
Common::SeekableReadStream' has virtual functions but
non-virtual destructor
./common/stream.h:194: warning: 'class
Common::XORReadStream' has virtual functions but
non-virtual destructor
./common/stream.h:220: warning: 'class
Common::MemoryReadStream' has virtual functions but
non-virtual destructor
./common/stream.h:263: warning: 'class
Common::MemoryWriteStream' has virtual functions but
non-virtual destructor
./scumm/gfx.h:81: warning: 'struct Scumm::VirtScreen'
only defines private constructors and has no friends
./scumm/scumm.h:278: warning: 'struct Scumm::StringTab'
only defines private constructors and has no friends
./scumm/scumm.h:155: warning: 'Scumm::debugChannels'
defined but not used
make: *** [scumm/imuse.o] Error 1


The actual error is:
./scumm/instrument.h:76: error: cast from
'Scumm::InstrumentInternal*' to 'int' loses precision


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=1182903&group_id=37116




More information about the Scummvm-tracker mailing list