提交 f57d6875 编写于 作者: S Shelpwang

fix warning: variable 'nameCopyOffset' set but not used

Signed-off-by: NShelpwang <861550161@qq.com>
上级 a0506631
......@@ -113,10 +113,8 @@ void GlyphsFile::SetFontName(const char* fontName)
return;
}
uint32_t nameCopyOffset = 0;
uint32_t nameLen = strlen(fontName);
if (nameLen > FONT_NAME_LEN_MAX) {
nameCopyOffset = nameLen - FONT_NAME_LEN_MAX;
nameLen = FONT_NAME_LEN_MAX;
} else if (nameLen == 0) {
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册