소스 검색

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;