From 1be4fcc2e729a3f65d5b3270c827296ea05a31a7 Mon Sep 17 00:00:00 2001 From: danielaparker Date: Wed, 24 Feb 2016 19:30:38 -0500 Subject: [PATCH] Remove enum warnings --- src/jsoncons/json.hpp | 4 ++++ src/jsoncons_ext/csv/csv_parser.hpp | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/jsoncons/json.hpp b/src/jsoncons/json.hpp index 21d50e26c..20f8ef7b3 100644 --- a/src/jsoncons/json.hpp +++ b/src/jsoncons/json.hpp @@ -2109,6 +2109,8 @@ class basic_json case value_types::array_t: var_.value_.array_value_->resize(n); break; + default: + break; } } @@ -2120,6 +2122,8 @@ class basic_json case value_types::array_t: var_.value_.array_value_->resize(n, val); break; + default: + break; } } diff --git a/src/jsoncons_ext/csv/csv_parser.hpp b/src/jsoncons_ext/csv/csv_parser.hpp index 64e64489b..4833c65b9 100644 --- a/src/jsoncons_ext/csv/csv_parser.hpp +++ b/src/jsoncons_ext/csv/csv_parser.hpp @@ -208,6 +208,8 @@ class basic_csv_parser : private basic_parsing_context case modes::object: handler_->begin_object(*this); break; + default: + break; } } } @@ -235,6 +237,8 @@ class basic_csv_parser : private basic_parsing_context } } break; + default: + break; } column_index_ = 0; } @@ -468,6 +472,8 @@ class basic_csv_parser : private basic_parsing_context after_field(); } break; + default: + break; } if (column_index_ > 0) {