From aa43d9ccab056a371426de6d0606dacaf1b6296c Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Fri, 4 Sep 2009 17:43:37 +0000 Subject: Shuffle lines to avoid gcc 3 warning about redundant redeclaration Signed-off-by: Blue Swirl --- qdict.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'qdict.c') diff --git a/qdict.c b/qdict.c index cffd23d323..ecc266e488 100644 --- a/qdict.c +++ b/qdict.c @@ -17,7 +17,12 @@ #include "sys-queue.h" #include "qemu-common.h" -static const QType qdict_type; +static void qdict_destroy_obj(QObject *obj); + +static const QType qdict_type = { + .code = QTYPE_QDICT, + .destroy = qdict_destroy_obj, +}; /** * qdict_new(): Create a new QDict @@ -290,8 +295,3 @@ static void qdict_destroy_obj(QObject *obj) qemu_free(qdict); } - -static const QType qdict_type = { - .code = QTYPE_QDICT, - .destroy = qdict_destroy_obj, -}; -- cgit v1.2.1