From 9630b769906e7ad6a4ac2ebf606458891243f8ea Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 29 Mar 2015 18:21:33 -0400 Subject: [PATCH] Build: Resolve warnings from flod build --- src/Lexer.cpp | 4 +++- src/Variant.cpp | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Lexer.cpp b/src/Lexer.cpp index 9a6169b5e..5e1f7ea36 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -33,7 +33,7 @@ #include static const std::string uuid_pattern = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; -static const int uuid_min_length = 8; +static const unsigned int uuid_min_length = 8; std::string Lexer::dateFormat = ""; bool Lexer::isoEnabled = true; @@ -158,6 +158,8 @@ const std::string Lexer::typeName (const Lexer::Type& type) case Lexer::Type::date: return "date"; case Lexer::Type::duration: return "duration"; } + + return "unknown"; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/Variant.cpp b/src/Variant.cpp index d26aafe87..80b5f228f 100644 --- a/src/Variant.cpp +++ b/src/Variant.cpp @@ -1964,6 +1964,8 @@ Variant::operator std::string () const case type_unknown: throw std::string (STRING_VARIANT_RENDER_UNK); } + + return ""; } ////////////////////////////////////////////////////////////////////////////////