mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
Changed: #825 Remove all warnings when compiling Ryzom
This commit is contained in:
parent
8a598ab46a
commit
b7cec00055
5 changed files with 10 additions and 8 deletions
|
@ -174,7 +174,7 @@ class CContextSoundContainer : public IContextSoundContainer
|
||||||
return;
|
return;
|
||||||
nlassertex(i==NbJoker, ("Error while adding sound '%s' into context sound container", NLMISC::CStringMapper::unmap(sound->getName()).c_str()));
|
nlassertex(i==NbJoker, ("Error while adding sound '%s' into context sound container", NLMISC::CStringMapper::unmap(sound->getName()).c_str()));
|
||||||
|
|
||||||
int randomValue;
|
sint randomValue = 0;
|
||||||
if (UseRandom)
|
if (UseRandom)
|
||||||
{
|
{
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
|
|
|
@ -80,11 +80,11 @@ bool CWindowDisplayer::update ()
|
||||||
|
|
||||||
uint CWindowDisplayer::createLabel (const char *value)
|
uint CWindowDisplayer::createLabel (const char *value)
|
||||||
{
|
{
|
||||||
int pos;
|
uint pos;
|
||||||
{
|
{
|
||||||
CSynchronized<std::vector<CLabelEntry> >::CAccessor access (&_Labels);
|
CSynchronized<std::vector<CLabelEntry> >::CAccessor access (&_Labels);
|
||||||
access.value().push_back (CLabelEntry(value));
|
access.value().push_back (CLabelEntry(value));
|
||||||
pos = (int)access.value().size()-1;
|
pos = (uint)access.value().size()-1;
|
||||||
}
|
}
|
||||||
return pos;
|
return pos;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace NLSOUND
|
||||||
{
|
{
|
||||||
|
|
||||||
CMusicChannelAL::CMusicChannelAL(CSoundDriverAL *soundDriver)
|
CMusicChannelAL::CMusicChannelAL(CSoundDriverAL *soundDriver)
|
||||||
: _MusicBuffer(NULL), _SoundDriver(soundDriver), _Gain(1.0), _Source(NULL), _Thread(NULL), _Async(false), _Playing(false), _Buffer(NULL)
|
: _SoundDriver(soundDriver), _MusicBuffer(NULL), _Thread(NULL), _Buffer(NULL), _Source(NULL), _Playing(false), _Async(false), _Gain(1.0)
|
||||||
{
|
{
|
||||||
// create a default source for music streaming
|
// create a default source for music streaming
|
||||||
_Source = static_cast<CSourceAL*>(_SoundDriver->createSource());
|
_Source = static_cast<CSourceAL*>(_SoundDriver->createSource());
|
||||||
|
|
|
@ -33,7 +33,7 @@ public:
|
||||||
bool readString (string &str, FILE *file)
|
bool readString (string &str, FILE *file)
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
while (c = fgetc (file))
|
while ((c = fgetc (file)))
|
||||||
{
|
{
|
||||||
if (c == EOF)
|
if (c == EOF)
|
||||||
return false;
|
return false;
|
||||||
|
@ -47,7 +47,7 @@ int main(int argc, char* argv[])
|
||||||
if (argc>1)
|
if (argc>1)
|
||||||
{
|
{
|
||||||
char buffer[512];
|
char buffer[512];
|
||||||
while (gets (buffer))
|
while (fgets(buffer, 512, stdin))
|
||||||
{
|
{
|
||||||
uint32 address;
|
uint32 address;
|
||||||
if (strcmp (buffer, "help") == 0)
|
if (strcmp (buffer, "help") == 0)
|
||||||
|
|
|
@ -788,6 +788,8 @@ struct TPredicateNode : public TQueryNode
|
||||||
ts.EndDate = ~0;
|
ts.EndDate = ~0;
|
||||||
tl.push_back(ts);
|
tl.push_back(ts);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return tl;
|
return tl;
|
||||||
|
@ -1163,8 +1165,8 @@ public:
|
||||||
/// The iterator in the string where the error is detected
|
/// The iterator in the string where the error is detected
|
||||||
iterator It;
|
iterator It;
|
||||||
/// The error string
|
/// The error string
|
||||||
char *ErrorStr;
|
const char *ErrorStr;
|
||||||
EInvalidQuery(iterator it, char *erroStr)
|
EInvalidQuery(iterator it, const char *erroStr)
|
||||||
: It(it),
|
: It(it),
|
||||||
ErrorStr(erroStr)
|
ErrorStr(erroStr)
|
||||||
{}
|
{}
|
||||||
|
|
Loading…
Reference in a new issue