diff -Naur a/boost/date_time/date_parsing.hpp b/boost/date_time/date_parsing.hpp --- a/boost/date_time/date_parsing.hpp 2012-07-05 16:47:25.000000000 +0530 +++ b/boost/date_time/date_parsing.hpp 2012-07-10 18:38:25.000000000 +0530 @@ -148,6 +148,8 @@ day = boost::lexical_cast(*beg); break; } + default: + break; } //switch } return date_type(year, month, day); @@ -180,6 +182,7 @@ case 0: y = i; break; case 1: m = i; break; case 2: d = i; break; + default: break; } pos++; }