From 25c96bc9f348814d50095710c30ddc2776f5bb12 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 20 Sep 2012 01:02:39 +0000 Subject: code cleanup: remove unused macros, commet some which may be useful later - or good to keep for completeness. quieted some warnings and add flags -Wmissing-include-dirs and -Wno-div-by-zero to cmake/gcc --- intern/mikktspace/mikktspace.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'intern/mikktspace') diff --git a/intern/mikktspace/mikktspace.c b/intern/mikktspace/mikktspace.c index a1ae6bd81c0..a6597986c0a 100644 --- a/intern/mikktspace/mikktspace.c +++ b/intern/mikktspace/mikktspace.c @@ -1063,6 +1063,7 @@ static int Build4RuleGroups(STriInfo pTriInfos[], SGroup pGroups[], int piGroupT const int iNrMaxGroups = iNrTrianglesIn*3; int iNrActiveGroups = 0; int iOffset = 0, f=0, i=0; + (void)iNrMaxGroups; /* quiet warnings in non debug mode */ for (f=0; f=0) // neighbor { @@ -1104,6 +1106,7 @@ static int Build4RuleGroups(STriInfo pTriInfos[], SGroup pGroups[], int piGroupT const tbool bOrPre2 = (pTriInfos[neigh_indexR].iFlag&ORIENT_PRESERVING)!=0 ? TTRUE : TFALSE; const tbool bDiff = bOrPre!=bOrPre2 ? TTRUE : TFALSE; assert(bAnswer || bDiff); + (void)bAnswer, (void)bDiff; /* quiet warnings in non debug mode */ } // update offset -- cgit v1.2.3