Skip to content

Commit

Permalink
Shuffle lines to avoid gcc 3 warning about redundant redeclaration
Browse files Browse the repository at this point in the history
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  • Loading branch information
blueswirl committed Sep 4, 2009
1 parent c34ebfd commit aa43d9c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions qdict.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
};
12 changes: 6 additions & 6 deletions qint.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
#include "qobject.h"
#include "qemu-common.h"

static const QType qint_type;
static void qint_destroy_obj(QObject *obj);

static const QType qint_type = {
.code = QTYPE_QINT,
.destroy = qint_destroy_obj,
};

/**
* qint_from_int(): Create a new QInt from an int64_t
Expand Down Expand Up @@ -59,8 +64,3 @@ static void qint_destroy_obj(QObject *obj)
assert(obj != NULL);
qemu_free(qobject_to_qint(obj));
}

static const QType qint_type = {
.code = QTYPE_QINT,
.destroy = qint_destroy_obj,
};
12 changes: 6 additions & 6 deletions qstring.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
};

0 comments on commit aa43d9c

Please sign in to comment.