Remove unused variables and parameter warnings (#4767)

Remove the following types of build warnings:

warning C4189: local variable is initialized but not referenced
warning C4100: unreferenced parameter
warning C4101: unreferenced local variable

I have only commented out unused variables and used [[maybe_unused]] for unused parameters.
This commit is contained in:
Paul Johnson
2025-12-22 12:59:31 +00:00
committed by GitHub
parent b0b65e4e1f
commit 9cff593c68
10 changed files with 18 additions and 19 deletions

View File

@@ -1018,8 +1018,7 @@ namespace gte
for (int i = 1; i <= input.numUniqueKnots - 2; ++i)
{
int mult = mUniqueKnots[i].multiplicity;
LogAssert(mult >= 1 && mult <= mDegree + 1, "Invalid interior multiplicity.");
LogAssert(mUniqueKnots[i].multiplicity >= 1 && mUniqueKnots[i].multiplicity <= mDegree + 1, "Invalid interior multiplicity.");
}
mOpen = (mult0 == mult1 && mult0 == mDegree + 1);