diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-21 16:41:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-21 16:41:09 +0200 |
commit | d5d2b6840de49942fe11bf06ce45b11a5f14dad4 (patch) | |
tree | d63af9a25551278979d69296d5db13cf37de07f8 /butl | |
parent | c1d9742df3cf20c3b235ecdd4f4d7a6f71037f1d (diff) |
Use older default aggregate initialization syntax
GCC 4.9 doesn't seem to support it and issues warnings.
Diffstat (limited to 'butl')
-rw-r--r-- | butl/timestamp.cxx | 6 |
1 files 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); |