Changed: #825 Remove all warning when compiling Ryzom on Linux

hg/feature/sound
kervala 15 years ago
parent aa8eba9d99
commit c0318a2823

@ -69,7 +69,7 @@ SZ_RESULT SzFileSeekImp(void *object, CFileSize pos)
return SZE_FAIL; return SZE_FAIL;
} }
void PrintError(char *sz) void PrintError(const char *sz)
{ {
printf("\nERROR: %s\n", sz); printf("\nERROR: %s\n", sz);
} }
@ -179,7 +179,7 @@ int main(int numargs, char *args[])
if (!testCommand) if (!testCommand)
{ {
FILE *outputHandle; FILE *outputHandle;
UInt32 processedSize; size_t processedSize;
char *fileName = f->Name; char *fileName = f->Name;
size_t nameLen = strlen(f->Name); size_t nameLen = strlen(f->Name);
for (; nameLen > 0; nameLen--) for (; nameLen > 0; nameLen--)

@ -117,7 +117,7 @@
StopCompilingDueBUG StopCompilingDueBUG
#endif #endif
int LzmaDecodeProperties(CLzmaProperties *propsRes, const unsigned char *propsData, int size) int LzmaDecodeProperties(CLzmaProperties *propsRes, const unsigned char *propsData, size_t size)
{ {
unsigned char prop0; unsigned char prop0;
if (size < LZMA_PROPERTIES_SIZE) if (size < LZMA_PROPERTIES_SIZE)

@ -68,7 +68,7 @@ typedef struct _CLzmaProperties
#endif #endif
}CLzmaProperties; }CLzmaProperties;
int LzmaDecodeProperties(CLzmaProperties *propsRes, const unsigned char *propsData, int size); int LzmaDecodeProperties(CLzmaProperties *propsRes, const unsigned char *propsData, size_t size);
#define LzmaGetNumProbs(Properties) (LZMA_BASE_SIZE + (LZMA_LIT_SIZE << ((Properties)->lc + (Properties)->lp))) #define LzmaGetNumProbs(Properties) (LZMA_BASE_SIZE + (LZMA_LIT_SIZE << ((Properties)->lc + (Properties)->lp)))

Loading…
Cancel
Save