summaryrefslogtreecommitdiffhomepage
path: root/Datafile
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2012-07-16 17:51:12 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2012-07-16 17:51:12 +0000
commitd247e6df50e9377cc5ecd0f4c29cc40de4165d1a (patch)
tree460f29768ba7ff213ead361f1165f2028fcf56d8 /Datafile
parent48cce8ead9fdd6be5f1c4593235c56adb9156bea (diff)
downloadstarshatter-d247e6df50e9377cc5ecd0f4c29cc40de4165d1a.zip
starshatter-d247e6df50e9377cc5ecd0f4c29cc40de4165d1a.tar.gz
starshatter-d247e6df50e9377cc5ecd0f4c29cc40de4165d1a.tar.bz2
Ignore PVS Studio warning V576
Diffstat (limited to 'Datafile')
-rw-r--r--Datafile/Archive.cpp8
1 files changed, 4 insertions, 4 deletions
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;