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 --- qstring.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'qstring.c') diff --git a/qstring.c b/qstring.c index 9fa2e3024e..6d411da7b7 100644 --- a/qstring.c +++ b/qstring.c @@ -13,7 +13,12 @@ #include "qstring.h" #include "qemu-common.h" -static const QType qstring_type; +static void qstring_destroy_obj(QObject *obj); + +static const QType qstring_type = { + .code = QTYPE_QSTRING, + .destroy = qstring_destroy_obj, +}; /** * qstring_from_str(): Create a new QString from a regular C string @@ -66,8 +71,3 @@ static void qstring_destroy_obj(QObject *obj) qemu_free(qs->string); qemu_free(qs); } - -static const QType qstring_type = { - .code = QTYPE_QSTRING, - .destroy = qstring_destroy_obj, -}; -- cgit v1.2.1