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

This commit is contained in:
Ebrahim Byagowi 2018-03-07 00:23:40 +03:30 committed by GitHub
parent 54cbe6702c
commit 9b4a5d7ef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -6,8 +6,8 @@ language: cpp
env:
global:
- CPPFLAGS=""
- CFLAGS="-Werror -Werror=unused-function"
- CXXFLAGS="-Werror -Werror=unused-function -Wno-deprecated-register" # glib uses register and clang raises a warning
- CFLAGS="-Werror -Werror=unused -Werror=unused-function"
- 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"
- NOCONFIGURE=1
# COVERITY_SCAN_TOKEN

View File

@ -299,7 +299,6 @@ struct glyf
return true;
else if (num_contours > 0)
{
unsigned int glyph_len = *end_offset - start_offset;
/* simple glyph w/contours, possibly trimmable */
glyph += GlyphHeader::static_size + 2 * num_contours;