# HG changeset patch # User iloehken # Date 1450895187 -3600 # Wed Dec 23 19:26:27 2015 +0100 # Branch 1.60 # Node ID b5590705aeb464fc9c6d9ff20a3c7ccbfc8c8aff # Parent 973baab4f688d8878afb9615465c16389859f75d fixed missing return statements diff -r 973baab4f688 -r b5590705aeb4 boost/property_tree/detail/json_parser/standard_callbacks.hpp --- a/boost/property_tree/detail/json_parser/standard_callbacks.hpp Wed Dec 23 16:42:36 2015 +0100 +++ b/boost/property_tree/detail/json_parser/standard_callbacks.hpp Wed Dec 23 19:26:27 2015 +0100 @@ -117,6 +117,8 @@ } case object: assert(false); // must start with string, i.e. call new_value + // axx: ilo 23/12/2015: let crash + return reinterpret_cast(*static_cast(nullptr)); case key: { l.t->push_back(std::make_pair(key_buffer, Ptree())); l.k = object; @@ -129,6 +131,8 @@ return new_tree(); } assert(false); + // axx: ilo 23/12/2015: just to satisfy the compiler having a return statement + return reinterpret_cast(*static_cast(nullptr)); } string& new_value() { if (stack.empty()) return new_tree().data();