Define kalistglobal only once, declare it globally

This fixes building with gcc and the -fno-common option. The
option is now added to compiler flags in full debugging mode.
This commit is contained in:
Enrico Tröger 2010-09-25 12:42:51 +02:00 committed by Christian Dywan
parent 430e754ae0
commit 769a1dce17
3 changed files with 4 additions and 2 deletions

View file

@ -65,6 +65,8 @@ enum {
static guint signals[LAST_SIGNAL];
GList* kalistglobal;
static void
katze_array_finalize (GObject* object);

View file

@ -83,7 +83,7 @@ katze_array_get_items (KatzeArray* array);
GList*
katze_array_peek_items (KatzeArray* array);
GList* kalistglobal;
extern GList* kalistglobal;
#define KATZE_ARRAY_FOREACH_ITEM(kaitem, kaarray) \
for (kalistglobal = katze_array_peek_items (kaarray), \
kaitem = kalistglobal ? kalistglobal->data : NULL; \

View file

@ -308,7 +308,7 @@ def configure (conf):
'-Wno-missing-field-initializers '
'-Wredundant-decls -Wmissing-noreturn '
'-Wshadow -Wpointer-arith -Wcast-align '
'-Winline -Wformat-security '
'-Winline -Wformat-security -fno-common '
'-Winit-self -Wundef -Wdeclaration-after-statement '
'-Wmissing-format-attribute -Wnested-externs '
# -DGSEAL_ENABLE