Browse Source

stb_truetype: Fixed unused variable warnings for configuration where asserts are disabled. (#1642)

omar 7 years ago
parent
commit
6662fe7b18
1 changed files with 1 additions and 0 deletions
  1. 1 0
      stb_truetype.h

+ 1 - 0
stb_truetype.h

@@ -2463,6 +2463,7 @@ static stbtt_int32  stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, i
                             if (valueFormat2 != 0) return 0;
                             if (valueFormat2 != 0) return 0;
 
 
                             STBTT_assert(coverageIndex < pairSetCount);
                             STBTT_assert(coverageIndex < pairSetCount);
+                            STBTT__NOTUSED(pairSetCount);
 
 
                             needle=glyph2;
                             needle=glyph2;
                             r=pairValueCount-1;
                             r=pairValueCount-1;