From 291e16e549595ed367301d37fd2c938722feca55 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 12 Oct 2016 14:36:52 +0000 Subject: [PATCH] Fix a few compiler warnings. --- src/exportvector.cpp | 4 +++- src/style.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/exportvector.cpp b/src/exportvector.cpp index 594816d..4dcf685 100644 --- a/src/exportvector.cpp +++ b/src/exportvector.cpp @@ -750,8 +750,10 @@ const char *DxfFileWriter::lineTypeName(StipplePattern stippleType) { case StipplePattern::FREEHAND: case StipplePattern::ZIGZAG: /* no corresponding DXF line type */ - return "CONTINUOUS"; + break; } + + return "CONTINUOUS"; } //----------------------------------------------------------------------------- diff --git a/src/style.cpp b/src/style.cpp index 459d2f8..b3e913e 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -303,7 +303,8 @@ Canvas::Stroke Style::Stroke(hStyle hs) { } Canvas::Stroke Style::Stroke(int hsv) { - return Style::Stroke(hStyle{hsv}); + hStyle hs = { (uint32_t) hsv }; + return Style::Stroke(hs); } //-----------------------------------------------------------------------------