diff --git a/core/shape-description.cpp b/core/shape-description.cpp index 06f33c5..7962bf3 100644 --- a/core/shape-description.cpp +++ b/core/shape-description.cpp @@ -235,6 +235,7 @@ bool writeShapeDescription(FILE *output, const Shape &shape) { case MAGENTA: colorCode = 'm'; break; case CYAN: colorCode = 'c'; break; case WHITE: colorCode = 'w'; break; + default: break; } { const LinearSegment *e = dynamic_cast(&**edge); diff --git a/ext/import-font.cpp b/ext/import-font.cpp index 655ddd0..dfdff1a 100644 --- a/ext/import-font.cpp +++ b/ext/import-font.cpp @@ -94,10 +94,10 @@ bool loadGlyph(Shape &output, FontHandle *font, int unicode, double *advance) { }; if (!font) - return NULL; + return false; FT_Error error = FT_Load_Char(font->face, unicode, FT_LOAD_NO_SCALE); if (error) - return NULL; + return false; output.contours.clear(); output.inverseYAxis = false; if (advance) diff --git a/main.cpp b/main.cpp index 8d60086..544e1ab 100644 --- a/main.cpp +++ b/main.cpp @@ -221,6 +221,8 @@ static const char * writeOutput(const Bitmap &bitmap, const char *filename, F fclose(file); return NULL; } + default: + break; } } else { if (format == AUTO || format == TEXT) @@ -597,6 +599,8 @@ int main(int argc, const char * const *argv) { fclose(file); break; } + default: + break; } // Validate and normalize shape @@ -695,6 +699,8 @@ int main(int argc, const char * const *argv) { generateMSDF(msdf, shape, range, scale, translate, edgeThreshold); break; } + default: + break; } // Save output @@ -747,6 +753,8 @@ int main(int argc, const char * const *argv) { ABORT("Failed to write test render file."); } break; + default: + break; } return 0;