Removed various g++ compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2283 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
66b3f127f6
commit
686540bf29
@ -24,9 +24,13 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <ogg/ogg.h>
|
#include <ogg/ogg.h>
|
||||||
// Disable warning about potential loss of precision in vorbisfile.h
|
// Disable warning about potential loss of precision in vorbisfile.h
|
||||||
#pragma warning(disable:4244)
|
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||||
|
# pragma warning(disable:4244)
|
||||||
|
#endif
|
||||||
# include <vorbis/vorbisfile.h>
|
# include <vorbis/vorbisfile.h>
|
||||||
#pragma warning(default:4244)
|
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||||
|
# pragma warning(default:4244)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
# include <OpenAL/al.h>
|
# include <OpenAL/al.h>
|
||||||
|
@ -26,6 +26,7 @@ class SFXBase
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
virtual ~SFXBase() {};
|
||||||
virtual void play() = 0;
|
virtual void play() = 0;
|
||||||
virtual void loop() = 0;
|
virtual void loop() = 0;
|
||||||
virtual void stop() = 0;
|
virtual void stop() = 0;
|
||||||
|
@ -38,7 +38,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
SFXOpenAL(ALuint buffer);
|
SFXOpenAL(ALuint buffer);
|
||||||
~SFXOpenAL();
|
virtual ~SFXOpenAL();
|
||||||
virtual void play();
|
virtual void play();
|
||||||
virtual void loop();
|
virtual void loop();
|
||||||
virtual void stop();
|
virtual void stop();
|
||||||
|
@ -176,7 +176,7 @@ void Collectable::hitRedHerring(int n, const Herring &herring, int add_info)
|
|||||||
// On client: just set the value
|
// On client: just set the value
|
||||||
if(network_manager->getMode()==NetworkManager::NW_CLIENT)
|
if(network_manager->getMode()==NetworkManager::NW_CLIENT)
|
||||||
{
|
{
|
||||||
int dummy = m_random.get(100); // keep random numbers in sync
|
m_random.get(100); // keep random numbers in sync
|
||||||
m_type = (CollectableType)add_info;
|
m_type = (CollectableType)add_info;
|
||||||
m_number = 1;
|
m_number = 1;
|
||||||
return;
|
return;
|
||||||
@ -234,7 +234,7 @@ void Collectable::hitRedHerring(int n, const Herring &herring, int add_info)
|
|||||||
if(m_number > MAX_COLLECTABLES) m_number = MAX_COLLECTABLES;
|
if(m_number > MAX_COLLECTABLES) m_number = MAX_COLLECTABLES;
|
||||||
}
|
}
|
||||||
// Ignore new collectable if it is different from the current one
|
// Ignore new collectable if it is different from the current one
|
||||||
int dummy = m_random.get(100); // keep random numbers in synch
|
m_random.get(100); // keep random numbers in synch
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} // if network client
|
} // if network client
|
||||||
|
@ -44,7 +44,9 @@ void Highscores::Read(const lisp::Lisp* const node)
|
|||||||
{
|
{
|
||||||
node->get("track-name", m_track );
|
node->get("track-name", m_track );
|
||||||
node->get("number-karts", m_number_of_karts );
|
node->get("number-karts", m_number_of_karts );
|
||||||
node->get("race-mode", (int&)m_highscore_type);
|
int hst=0;
|
||||||
|
node->get("race-mode", hst );
|
||||||
|
m_highscore_type = (HighscoreType)hst;
|
||||||
node->get("difficulty", m_difficulty );
|
node->get("difficulty", m_difficulty );
|
||||||
node->get("number-of-laps", m_number_of_laps );
|
node->get("number-of-laps", m_number_of_laps );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user