Ticket #7525: br1602879-gcc295.diff

File br1602879-gcc295.diff, 1.9 KB (added by cyxx, 17 years ago)

Possible workarounds

  • scummvm/common/str.cpp

     
    4545}
    4646
    4747String::String(const char *str, uint32 len)
    48 : _len(0), _str(_storage), _storage() {
     48: _len(0), _str(_storage) {
    4949
     50        _storage[0] = 0;
    5051        if (str && *str) {
    5152                const uint32 tmp = strlen(str);
    5253                assert(len <= tmp);
  • scummvm/common/str.h

     
    9696        static const char *emptyString;
    9797#endif
    9898
    99         String() : _len(0), _str(_storage), _storage() {}
     99        String() : _len(0), _str(_storage) { _storage[0] = 0; }
    100100        String(const char *str, uint32 len = 0);
    101101        String(const String &str);
    102102        virtual ~String();
  • scummvm/common/hashmap.h

     
    8484template <class Key, class Val, class HashFunc = Hash<Key>, class EqualFunc = EqualTo<Key> >
    8585class HashMap {
    8686private:
    87 #if defined (_WIN32_WCE) || defined (_MSC_VER) || defined (__SYMBIAN32__) || defined (PALMOS_MODE) || defined (__MINT__)
     87#if defined (_WIN32_WCE) || defined (_MSC_VER) || defined (__SYMBIAN32__) || defined (PALMOS_MODE) || defined (__MINT__) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 95))
    8888//FIXME evc4, msvc6,msvc7 & GCC 2.9x doesn't like it as private member
    8989public:
    9090#endif
  • scummvm/engines/saga/actor.cpp

     
    10801080        int i;
    10811081        ActorData *actor;
    10821082        int width, height, height2;
    1083         Point posPoint;
    10841083
    10851084        if (_activeSpeech.playing) {
    10861085                _activeSpeech.playingTime -= msec;