diff options
author | Ladislav Zezula <ladislav.zezula@avg.com> | 2013-12-12 11:15:16 +0100 |
---|---|---|
committer | Ladislav Zezula <ladislav.zezula@avg.com> | 2013-12-12 11:15:16 +0100 |
commit | 6961cd51b65e8df7f807e25ab6ffc4da8c205449 (patch) | |
tree | 48bcfa6c0bb51171b3cb25330abb0e5caf051ff9 /test | |
parent | 5106d34fdaaf6378abf0fa8bb0b30d54a487e398 (diff) |
+ Fixed warnings
+ Added SBaseDumpData to the makefiles
Diffstat (limited to 'test')
-rw-r--r-- | test/TLogHelper.cpp | 8 | ||||
-rw-r--r-- | test/Test.cpp | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/test/TLogHelper.cpp b/test/TLogHelper.cpp index 127ce77..8bfb5fd 100644 --- a/test/TLogHelper.cpp +++ b/test/TLogHelper.cpp @@ -57,11 +57,11 @@ class TLogHelper // String replacements for format strings #ifdef _MSC_VER -#define I64u_t _T("%I64u"); -#define I64u_a "%I64u"; +#define I64u_t _T("%I64u") +#define I64u_a "%I64u" #else -#define I64u_t "%llu"; -#define I64u_a "%llu"; +#define I64u_t "%llu" +#define I64u_a "%llu" #endif //----------------------------------------------------------------------------- diff --git a/test/Test.cpp b/test/Test.cpp index eee67d5..061d432 100644 --- a/test/Test.cpp +++ b/test/Test.cpp @@ -345,7 +345,7 @@ static int InitializeMpqDirectory(char * argv[], int argc) cchMpqDirectory = strlen(szMpqDirectory); // Cut trailing slashes and/or backslashes - while(cchMpqDirectory > 0 && szMpqDirectory[cchMpqDirectory - 1] == '/' || szMpqDirectory[cchMpqDirectory - 1] == '\\') + while((cchMpqDirectory > 0) && (szMpqDirectory[cchMpqDirectory - 1] == '/' || szMpqDirectory[cchMpqDirectory - 1] == '\\')) cchMpqDirectory--; szMpqDirectory[cchMpqDirectory] = 0; @@ -714,7 +714,7 @@ static void WINAPI CompactCallback(void * pvUserData, DWORD dwWork, ULONGLONG By if(pLogger != NULL) pLogger->PrintProgress("%s (%I64u of %I64u) ...", szWork, BytesDone, TotalBytes); else - printf("%s (%I64u of %I64u) ... \r", szWork, (DWORD)BytesDone, (DWORD)TotalBytes); + printf("%s (" I64u_a " of " I64u_a ") ... \r", szWork, (DWORD)BytesDone, (DWORD)TotalBytes); } } @@ -2221,7 +2221,7 @@ static int TestCreateArchive_FileFlagTest(const char * szPlainName) dwMaxFileCount = SFileGetMaxFileCount(hMpq); for(i = 0; AddFlags[i] != 0xFFFFFFFF; i++) { - sprintf(szArchivedName, "FileTest_%02u.exe", i); + sprintf(szArchivedName, "FileTest_%02u.exe", (unsigned int)i); nError = AddLocalFileToMpq(&Logger, hMpq, szArchivedName, szFileName1, AddFlags[i], 0); if(nError != ERROR_SUCCESS) break; @@ -2355,7 +2355,7 @@ static int TestCreateArchive_CompressionsTest(const char * szPlainName) DWORD dwCmprCount = sizeof(Compressions) / sizeof(DWORD); DWORD dwAddedFiles = 0; DWORD dwFoundFiles = 0; - size_t i; + DWORD i; int nError; // Create paths for local file to be added |