cppcheck: verify more source files.

This commit is contained in:
Don Cross
2023-03-26 06:59:27 -04:00
parent 69311b3ccf
commit 5faccc9920
2 changed files with 2 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ int QuadraticRegression(const VectorListType *list, ParabolaType parab[3])
memset(&s, 0, sizeof(s));
s.N = list->length;
for (i=0; i < list->length; ++i)
{
{
double t = list->array[i].t;
double t2 = t*t;
s.st1 += t;

View File

@@ -82,7 +82,7 @@ cd generate || Fail "Cannot change back to generate directory."
echo ""
echo "Building C source code for 'generate' program."
cppcheck -I novas -I vsop -I top2013 --error-exitcode=9 --enable=all --suppress=variableScope --suppress=unusedStructMember --suppress=missingIncludeSystem generate.c || exit 1
cppcheck -I . -I novas -I vsop -I top2013 --error-exitcode=9 --enable=all --suppress=variableScope --suppress=unusedStructMember --suppress=missingIncludeSystem --suppress=unusedFunction generate.c earth.c astro_vector.c chebyshev.c codegen.c ephfile.c vsop/vsop.c top2013/top2013.c || exit 1
./build || Fail "Could not build 'generate' program from source."
mkdir -pv output temp apsides || Fail "Error creating directories."