From fbed12ac58a37517689f73912cfbd31cf3852381 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 13 Dec 2013 15:13:14 -0800 Subject: [PATCH] Fix warnings. --- format.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/format.h b/format.h index 2ac0bdf2..f03e959d 100644 --- a/format.h +++ b/format.h @@ -861,6 +861,16 @@ class BasicFormatter { template Arg(T *value); + struct StringValue { + const Char *value; + std::size_t size; + }; + + struct CustomValue { + const void *value; + FormatFunc format; + }; + public: Type type; union { @@ -873,14 +883,8 @@ class BasicFormatter { unsigned long long ulong_long_value; long double long_double_value; const void *pointer_value; - struct { - const Char *value; - std::size_t size; - } string; - struct { - const void *value; - FormatFunc format; - } custom; + StringValue string; + CustomValue custom; }; mutable BasicFormatter *formatter;