[gimp] Add -fno-common to CFLAGS



commit ee6a0290405878d3be6b21023a4e8f617c06df9e
Author: Mukund Sivaraman <muks banu com>
Date:   Mon Mar 21 22:49:48 2011 +0530

    Add -fno-common to CFLAGS
    
    Also fix the errors that were discovered by it. Multiple
    definitions of global variables are no longer silently combined by
    the linker, and will be reported as errors.
    
    If you see GIMP crash strangely (i.e, apart from the usual crashes),
    please go see a head doctor.

 configure.ac                           |    3 +++
 plug-ins/metadata/gimpxmpmodelwidget.h |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index cf60fa8..eef1f91 100644
--- a/configure.ac
+++ b/configure.ac
@@ -356,6 +356,9 @@ CFLAGS="$CFLAGS $extra_warnings"
 GIMP_DETECT_CFLAGS(extra_warnings, '-Wformat-non-literal')
 CFLAGS="$CFLAGS $extra_warnings"
 
+GIMP_DETECT_CFLAGS(extra_warnings, '-fno-common')
+CFLAGS="$CFLAGS $extra_warnings"
+
 
 # Ensure MSVC-compatible struct packing convention is used when
 # compiling for Win32 with gcc.
diff --git a/plug-ins/metadata/gimpxmpmodelwidget.h b/plug-ins/metadata/gimpxmpmodelwidget.h
index 95f435d..dc2b901 100644
--- a/plug-ins/metadata/gimpxmpmodelwidget.h
+++ b/plug-ins/metadata/gimpxmpmodelwidget.h
@@ -23,7 +23,7 @@
 G_BEGIN_DECLS
 
 
-enum
+typedef enum
 {
   GIMP_XMP_MODEL_WIDGET_PROP_0,
   GIMP_XMP_MODEL_WIDGET_PROP_SCHEMA_URI,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]