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

This commit is contained in:
kervala 2010-05-12 12:03:38 +02:00
parent 79cc68a5a3
commit 58e005c29b
3 changed files with 4 additions and 4 deletions

View file

@ -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--)

View file

@ -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)

View file

@ -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)))