|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84835 - trunk/boost/date_time
From: marshall_at_[hidden]
Date: 2013-06-19 11:36:33
Author: marshall
Date: 2013-06-19 11:36:32 EDT (Wed, 19 Jun 2013)
New Revision: 84835
URL: http://svn.boost.org/trac/boost/changeset/84835
Log:
Fixed more compiler warnings; Refs #5550
Text files modified:
trunk/boost/date_time/strings_from_facet.hpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Modified: trunk/boost/date_time/strings_from_facet.hpp
==============================================================================
--- trunk/boost/date_time/strings_from_facet.hpp Wed Jun 19 11:25:05 2013 (r84834)
+++ trunk/boost/date_time/strings_from_facet.hpp 2013-06-19 11:36:32 EDT (Wed, 19 Jun 2013) (r84835)
@@ -50,7 +50,8 @@
//grab the needed strings by using the locale to
//output each month
const charT* p_outfmt = outfmt.c_str(), *p_outfmt_end = p_outfmt + outfmt.size();
- tm tm_value = {};
+ tm tm_value;
+ memset(&tm_value, 0, sizeof(tm_value));
for (int m=0; m < 12; m++) {
tm_value.tm_mon = m;
stringstream_type ss;
@@ -103,7 +104,8 @@
//grab the needed strings by using the locale to
//output each month / weekday
const charT* p_outfmt = outfmt.c_str(), *p_outfmt_end = p_outfmt + outfmt.size();
- tm tm_value = {};
+ tm tm_value;
+ memset(&tm_value, 0, sizeof(tm_value));
for (int i=0; i < 7; i++) {
tm_value.tm_wday = i;
stringstream_type ss;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk