From d5d2b6840de49942fe11bf06ce45b11a5f14dad4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Apr 2016 16:41:09 +0200 Subject: Use older default aggregate initialization syntax GCC 4.9 doesn't seem to support it and issues warnings. --- butl/timestamp.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/butl/timestamp.cxx b/butl/timestamp.cxx index f3966b7..0da9f4c 100644 --- a/butl/timestamp.cxx +++ b/butl/timestamp.cxx @@ -391,7 +391,7 @@ namespace butl { // No %[], so just parse with strptime(). // - tm t {}; + tm t = tm (); const char* p (strptime (input, format, &t)); if (p == nullptr) bad_val (); @@ -439,7 +439,7 @@ namespace butl // that preceeds the %[] specifier. The returned pointer will be the // position we need to start from to parse the fraction. // - tm t {}; + tm t = tm (); // What if %[] is first, there is nothing before it? According to the // strptime() documentation an empty format string is a valid one. @@ -510,7 +510,7 @@ namespace butl // Reparse the modified input with the modified format. // - t = {}; + t = tm (); const char* b (in.c_str ()); p = strptime (b, fm.c_str (), &t); -- cgit v1.1