[Genabel-commits] r1210 - pkg/filevector/fvlib
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri May 10 13:54:05 CEST 2013
Author: lckarssen
Date: 2013-05-10 13:54:05 +0200 (Fri, 10 May 2013)
New Revision: 1210
Modified:
pkg/filevector/fvlib/frutil.cpp
Log:
Fix LLVM/Clang warning in the filevector lib:
"variable 'desize' is used uninitialized whenever switch default is taken"
Actually, this was not a real issue since the program exists in the 'default' case.
Modified: pkg/filevector/fvlib/frutil.cpp
===================================================================
--- pkg/filevector/fvlib/frutil.cpp 2013-05-10 11:31:50 UTC (rev 1209)
+++ pkg/filevector/fvlib/frutil.cpp 2013-05-10 11:54:05 UTC (rev 1210)
@@ -62,6 +62,7 @@
desize = sizeof(unsigned char);
break;
default:
+ desize = 0;
errorLog << "file contains data of unknown type " << type << endl << errorExit;
}
return desize;
More information about the Genabel-commits
mailing list