From 11395c4f099da3a9ebaa09eb0e36cce78fd9067f Mon Sep 17 00:00:00 2001 From: jkflying Date: Mon, 17 Aug 2015 13:59:45 +0200 Subject: [PATCH] Fix warnings Child attribute was being instantiated before parent attribute, gives warnings under GCC 4.9.1 --- format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.h b/format.h index 6b6951ac..4967b81a 100644 --- a/format.h +++ b/format.h @@ -1046,7 +1046,7 @@ struct NamedArg : Arg { template NamedArg(BasicStringRef argname, const T &value) - : name(argname), Arg(MakeValue(value)) { + : Arg(MakeValue(value)), name(argname) { type = static_cast(MakeValue::type(value)); } };