diff --git a/core/msdf-edge-artifact-patcher.cpp b/core/msdf-edge-artifact-patcher.cpp index a1d8c76..14c55df 100644 --- a/core/msdf-edge-artifact-patcher.cpp +++ b/core/msdf-edge-artifact-patcher.cpp @@ -1,6 +1,7 @@ #include "msdf-edge-artifact-patcher.h" +#include #include #include #include "arithmetics.hpp" diff --git a/core/shape-description.cpp b/core/shape-description.cpp index b6595cf..8aea533 100644 --- a/core/shape-description.cpp +++ b/core/shape-description.cpp @@ -75,7 +75,6 @@ static bool readContour(T *input, Contour &output, const Point2 *first, int term while ((c = readChar(input)) != terminator) { if (c != ';') return false; - bool parenthesis = false; EdgeColor color = WHITE; int result = readCoord(input, p[1]); if (result == 2) { diff --git a/main.cpp b/main.cpp index dad9739..6e21a41 100644 --- a/main.cpp +++ b/main.cpp @@ -389,7 +389,6 @@ int main(int argc, const char * const *argv) { bool scaleSpecified = false; double angleThreshold = DEFAULT_ANGLE_THRESHOLD; double errorCorrectionThreshold = MSDFGEN_DEFAULT_ERROR_CORRECTION_THRESHOLD; - bool defEdgeAssignment = true; const char *edgeAssignment = NULL; bool yFlip = false; bool printMetrics = false; @@ -673,7 +672,7 @@ int main(int argc, const char * const *argv) { double glyphAdvance = 0; if (!inputType || !input) ABORT("No input specified! Use either -svg or -font , or see -help."); - if (mode == MULTI_AND_TRUE && (format == BMP || format == AUTO && output && cmpExtension(output, ".bmp"))) + if (mode == MULTI_AND_TRUE && (format == BMP || (format == AUTO && output && cmpExtension(output, ".bmp")))) ABORT("Incompatible image format. A BMP file cannot contain alpha channel, which is required in mtsdf mode."); Shape shape; switch (inputType) {