瀏覽代碼

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

omar 7 年之前
父節點
當前提交
6662fe7b18
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;
 
                             STBTT_assert(coverageIndex < pairSetCount);
+                            STBTT__NOTUSED(pairSetCount);
 
                             needle=glyph2;
                             r=pairValueCount-1;