Boost C++ Libraries: Ticket #7112: Switch case default missing in date_time https://svn.boost.org/trac10/ticket/7112 <p> In file boost/date_time/date_parsing.hpp <strong>default</strong> case of switch condition is missing at two places.Switch case should not be used without default case ideally.In case of default, code should break from the loop. </p> <p> Attached patch is the fix for it. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7112 Trac 1.4.3 Gaurav Gupta <g.gupta@…> Tue, 10 Jul 2012 13:20:51 GMT attachment set https://svn.boost.org/trac10/ticket/7112 https://svn.boost.org/trac10/ticket/7112 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">date_parsing.2.hpp_patch</span> </li> </ul> <p> Fix for the reported Bug. </p> Ticket viboes Wed, 15 Aug 2012 13:54:33 GMT status, type, severity changed; resolution set https://svn.boost.org/trac10/ticket/7112#comment:1 https://svn.boost.org/trac10/ticket/7112#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Feature Requests</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Cosmetic</span> </li> </ul> <p> There are too much work to do to clean up Boost.<a class="missing wiki">DateTime</a>. Re-open if some tool is warning a bad usage. </p> Ticket Gaurav Gupta <g.gupta@…> Wed, 26 Sep 2012 03:02:44 GMT <link>https://svn.boost.org/trac10/ticket/7112#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7112#comment:2</guid> <description> <p> Similar Comment as in Ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7111" title="#7111: Feature Requests: Switch case's default missing in date_time (closed: fixed)">#7111</a> i.e </p> <p> If our application is using "Werror" flag, then if default case is not mentioned ,it is reported as an error. </p> </description> <category>Ticket</category> </item> <item> <author>Gaurav Gupta <g.gupta@…></author> <pubDate>Wed, 26 Sep 2012 03:03:07 GMT</pubDate> <title>status changed; resolution deleted https://svn.boost.org/trac10/ticket/7112#comment:3 https://svn.boost.org/trac10/ticket/7112#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">invalid</span> </li> </ul> Ticket Marshall Clow Wed, 26 Sep 2012 16:22:08 GMT <link>https://svn.boost.org/trac10/ticket/7112#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7112#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/80708" title="Added default case labels to silence bogus warnings; Refs #7112; Refs #7113">[80708]</a>) Added default case labels to silence bogus warnings; Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7112" title="#7112: Feature Requests: Switch case default missing in date_time (closed: fixed)">#7112</a>; Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7113" title="#7113: Feature Requests: In date_time default case of switch is missing. (closed: fixed)">#7113</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Sun, 30 Sep 2012 23:25:27 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7112#comment:5 https://svn.boost.org/trac10/ticket/7112#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/80797" title="Merge bug fixes to release; Fixes #5550 Fixes #6136 Fixes #6513 Fixes ...">[80797]</a>) Merge bug fixes to release; Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5550" title="#5550: Bugs: Missing initializer warning in date_time/date_facet.hpp (closed: fixed)">#5550</a> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6136" title="#6136: Patches: Fix for &#34;variable set but not used&#34; warning with GCC &gt;= 4.6 (closed: fixed)">#6136</a> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6513" title="#6513: Bugs: assignment vs comparison in unit test (closed: fixed)">#6513</a> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7111" title="#7111: Feature Requests: Switch case's default missing in date_time (closed: fixed)">#7111</a> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7112" title="#7112: Feature Requests: Switch case default missing in date_time (closed: fixed)">#7112</a> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7113" title="#7113: Feature Requests: In date_time default case of switch is missing. (closed: fixed)">#7113</a> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7342" title="#7342: Bugs: Warning in format_date_parser.hpp (closed: fixed)">#7342</a> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7426" title="#7426: Patches: Warning fixes in datetime (closed: fixed)">#7426</a> </p> Ticket