Ticket #20356: patch-build-with-gcc-4.diff

File patch-build-with-gcc-4.diff, 5.7 KB (added by cforkin@…, 15 years ago)

patch file

  • src/ProgressOutput.h

    only in patch2:
    unchanged:
     
    6262         * \param rate the rate of matched vertices
    6363         * \param avgweight the average edge weight (is not printed if not given)
    6464         **/
    65         void done (float rate, float avgweight = NoAvgWeight) const ;
     65        void done (float rate, float avgweight = 1.0) const ;
    6666
    67         static const float NoAvgWeight = -1.0 ;
     67        static float NoAvgWeight ;
    6868
    6969        protected:
    7070        std::string vcompose (const char *msgfmt, va_list ap) const ;
  • src/wrapper_hash_map.h

    only in patch2:
    unchanged:
     
    2929    namespace sgi { using ::hash ; using ::hash_map ; } ;
    3030# else
    3131#  include <ext/hash_map>
    32 #  if __GNUC_MINOR__ == 0
     32#  if __GNUC__ == 3 &&  __GNUC_MINOR__ == 0
    3333    namespace sgi = std ;                       // GCC 3.0
    3434#  else
    3535    namespace sgi = __gnu_cxx ; // GCC 3.1 and later
  • src/wrapper_hash_set.h

    only in patch2:
    unchanged:
     
    3030    namespace sgi { using ::hash ; using ::hash_set ; } ;
    3131# else
    3232#  include <ext/hash_set>
    33 #  if __GNUC_MINOR__ == 0
     33#  if __GNUC__ == 3 && __GNUC_MINOR__ == 0
    3434    namespace sgi = std ;                       // GCC 3.0
    3535#  else
    3636    namespace sgi = ::__gnu_cxx ;       // GCC 3.1 and later
  • src/AuData.h

    only in patch2:
    unchanged:
     
    2626
    2727// AuMuLawAudioData
    2828typedef AudioDataImpl<AuMuLaw,BYTE> AuMuLawAudioData ;
    29 inline BYTE AuMuLawAudioData::readValue (BinaryIO* io) const { return (io->read8()) ; }
    30 inline void AuMuLawAudioData::writeValue (BinaryIO* io, BYTE v) const { io->write8(v) ; }
     29template <> inline BYTE AuMuLawAudioData::readValue (BinaryIO* io) const { return (io->read8()) ; }
     30template <> inline void AuMuLawAudioData::writeValue (BinaryIO* io, BYTE v) const { io->write8(v) ; }
    3131
    3232// AuPCM8AudioData
    3333typedef AudioDataImpl<AuPCM8,SBYTE> AuPCM8AudioData ;
    34 inline SBYTE AuPCM8AudioData::readValue (BinaryIO* io) const { return ((SBYTE) io->read8()) ; }
    35 inline void AuPCM8AudioData::writeValue (BinaryIO* io, SBYTE v) const { io->write8((BYTE) v) ; }
     34template <> inline SBYTE AuPCM8AudioData::readValue (BinaryIO* io) const { return ((SBYTE) io->read8()) ; }
     35template <> inline void AuPCM8AudioData::writeValue (BinaryIO* io, SBYTE v) const { io->write8((BYTE) v) ; }
    3636
    3737// AuPCM16AudioData
    3838typedef AudioDataImpl<AuPCM16,SWORD16> AuPCM16AudioData ;
    39 inline SWORD16 AuPCM16AudioData::readValue (BinaryIO* io) const { return ((SWORD16) io->read16_be()) ; }
    40 inline void AuPCM16AudioData::writeValue (BinaryIO* io, SWORD16 v) const { io->write16_be((UWORD16) v) ; }
     39template <> inline SWORD16 AuPCM16AudioData::readValue (BinaryIO* io) const { return ((SWORD16) io->read16_be()) ; }
     40template <> inline void AuPCM16AudioData::writeValue (BinaryIO* io, SWORD16 v) const { io->write16_be((UWORD16) v) ; }
    4141
    4242// AuPCM32AudioData
    4343typedef AudioDataImpl<AuPCM32,SWORD32> AuPCM32AudioData ;
    44 inline SWORD32 AuPCM32AudioData::readValue (BinaryIO* io) const { return ((SWORD32) io->read32_be()) ; }
    45 inline void AuPCM32AudioData::writeValue (BinaryIO* io, SWORD32 v) const { io->write32_be((UWORD32) v) ; }
     44template <> inline SWORD32 AuPCM32AudioData::readValue (BinaryIO* io) const { return ((SWORD32) io->read32_be()) ; }
     45template <> inline void AuPCM32AudioData::writeValue (BinaryIO* io, SWORD32 v) const { io->write32_be((UWORD32) v) ; }
    4646
    4747#endif // ndef SH_AUDATA_H
  • src/Arguments.h

    only in patch2:
    unchanged:
     
    100100        static const VERBOSITY  Default_Verbosity = NORMAL ;
    101101        static const unsigned long      Default_Radius = 0 ; // there is no default radius for all file formats
    102102        static const unsigned int       Max_Algorithm = 3 ;
    103         static const float              Default_Goal = 100.0 ;
     103        static float                    Default_Goal ;
    104104        static const DEBUGCOMMAND       Default_DebugCommand = NONE ;
    105105        static const bool               Default_Check = false ;
    106106        static const unsigned int       Default_DebugLevel = 0 ;
  • src/Arguments.cc

    only in patch2:
    unchanged:
     
    2828#include "error.h"
    2929#include "msg.h"
    3030
     31float Arguments::Default_Goal = 100.0 ;
     32
    3133// the global Arguments object
    3234Arguments Args ;
    3335
  • src/ProgressOutput.cc

    only in patch2:
    unchanged:
     
    2323#include "ProgressOutput.h"
    2424#include "common.h"
    2525
     26float ProgressOutput::NoAvgWeight = -1.0 ;
     27
    2628ProgressOutput::ProgressOutput ()
    2729        : Message("__nomessage__")
    2830{
  • src/AuSampleValues.cc

     
    2121#include "AuSampleValues.h"
    2222
    2323// AuMuLawSampleValue
    24 const BYTE AuMuLawSampleValue::MinValue = 0 ;
    25 const BYTE AuMuLawSampleValue::MaxValue = BYTE_MAX ;
     24template <> const BYTE AuMuLawSampleValue::MinValue = 0 ;
     25template <> const BYTE AuMuLawSampleValue::MaxValue = BYTE_MAX ;
    2626
    2727// AuPCM8SampleValue
    28 const SBYTE AuPCM8SampleValue::MinValue = SBYTE_MIN ;
    29 const SBYTE AuPCM8SampleValue::MaxValue = SBYTE_MAX ;
     28template <> const SBYTE AuPCM8SampleValue::MinValue = SBYTE_MIN ;
     29template <> const SBYTE AuPCM8SampleValue::MaxValue = SBYTE_MAX ;
    3030
    3131// AuPCM16SampleValue
    32 const SWORD16 AuPCM16SampleValue::MinValue = SWORD16_MIN ;
    33 const SWORD16 AuPCM16SampleValue::MaxValue = SWORD16_MAX ;
     32template <> const SWORD16 AuPCM16SampleValue::MinValue = SWORD16_MIN ;
     33template <> const SWORD16 AuPCM16SampleValue::MaxValue = SWORD16_MAX ;
    3434
    3535// AuPCM32SampleValue
    36 const SWORD32 AuPCM32SampleValue::MinValue = SWORD32_MIN ;
    37 const SWORD32 AuPCM32SampleValue::MaxValue = SWORD32_MAX ;
     36template <> const SWORD32 AuPCM32SampleValue::MinValue = SWORD32_MIN ;
     37template <> const SWORD32 AuPCM32SampleValue::MaxValue = SWORD32_MAX ;
  • src/MHashPP.cc

    
            
     
    120120
    121121std::string MHashPP::getAlgorithmName (hashid id)
    122122{
    123         char *name = mhash_get_hash_name (id) ;
     123        char *name = (char*)(mhash_get_hash_name (id)) ;
    124124        std::string retval ;
    125125        if (name == NULL) {
    126126                retval = std::string ("<algorithm not found>") ;