From d247e6df50e9377cc5ecd0f4c29cc40de4165d1a Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Mon, 16 Jul 2012 17:51:12 +0000 Subject: Ignore PVS Studio warning V576 --- Datafile/Archive.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Datafile/Archive.cpp') diff --git a/Datafile/Archive.cpp b/Datafile/Archive.cpp index cff704c..d99558f 100644 --- a/Datafile/Archive.cpp +++ b/Datafile/Archive.cpp @@ -174,7 +174,7 @@ void DataArchive::LoadDatafile(const char* name) fread(&header, sizeof(DataHeader), 1, f); if (header.version != VERSION) { - printf("ERROR: datafile '%s' invalid version '%d'\n", + printf("ERROR: datafile '%s' invalid version '%d'\n", //-V576 datafile, header.version); fclose(f); exit(-2); @@ -376,7 +376,7 @@ void DataArchive::Insert(const char* name) if (verbose) { int ratio = (int) (100.0 * (double) e.size_comp / (double) e.size_orig); - printf("%9d => %9d (%2d%%)\n", e.size_orig, e.size_comp, ratio); + printf("%9d => %9d (%2d%%)\n", e.size_orig, e.size_comp, ratio); //-V576 } } else if (added) @@ -456,7 +456,7 @@ void DataArchive::List() int total_comp = 0; printf("DATAFILE: %s\n", datafile); - printf("Files: %d\n", header.nfiles); + printf("Files: %d\n", header.nfiles); //-V576 printf("\n"); printf("Index Orig Size Comp Size Ratio Name\n"); printf("----- --------- --------- ----- ----------------\n"); @@ -465,7 +465,7 @@ void DataArchive::List() DataEntry& e = directory[i]; int ratio = (int) (100.0 * (double) e.size_comp / (double) e.size_orig); - printf("%5d %9d %9d %2d%% %s\n", i+1, e.size_orig, e.size_comp, ratio, e.name); + printf("%5d %9d %9d %2d%% %s\n", i+1, e.size_orig, e.size_comp, ratio, e.name); //-V576 total_orig += e.size_orig; total_comp += e.size_comp; -- cgit v1.1