未验证 提交 9b4a5d7e 编写于 作者: E Ebrahim Byagowi 提交者: GitHub

[ci] Enable -Werror=unused (#862)

上级 54cbe670
...@@ -6,8 +6,8 @@ language: cpp ...@@ -6,8 +6,8 @@ language: cpp
env: env:
global: global:
- CPPFLAGS="" - CPPFLAGS=""
- CFLAGS="-Werror -Werror=unused-function" - CFLAGS="-Werror -Werror=unused -Werror=unused-function"
- CXXFLAGS="-Werror -Werror=unused-function -Wno-deprecated-register" # glib uses register and clang raises a warning - CXXFLAGS="-Werror -Werror=unused -Werror=unused-function -Wno-deprecated-register" # glib uses register and clang raises a warning
- CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2" - CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2"
- NOCONFIGURE=1 - NOCONFIGURE=1
# COVERITY_SCAN_TOKEN # COVERITY_SCAN_TOKEN
......
...@@ -299,7 +299,6 @@ struct glyf ...@@ -299,7 +299,6 @@ struct glyf
return true; return true;
else if (num_contours > 0) else if (num_contours > 0)
{ {
unsigned int glyph_len = *end_offset - start_offset;
/* simple glyph w/contours, possibly trimmable */ /* simple glyph w/contours, possibly trimmable */
glyph += GlyphHeader::static_size + 2 * num_contours; glyph += GlyphHeader::static_size + 2 * num_contours;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册