[glom] configure.ac: Don't use -pedantic with the C sources.



commit 56e533f1f01f07c673720783a6da8d7519fa4fe0
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Jun 5 22:14:13 2014 +0200

    configure.ac: Don't use -pedantic with the C sources.
    
    Because the latest gcc doesn't like the object<->function-pointer
    casts in eggmarshalers.c.

 configure.ac |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 381d5ff..5d31c83 100644
--- a/configure.ac
+++ b/configure.ac
@@ -206,13 +206,18 @@ MM_INIT_MODULE([libglom-1.26])
 # so we can dist them to avoid a tarball-build dependency.
 MM_CONFIG_DOCTOOL_DIR([docs/libglom_reference])
 
+
 # Evaluate the --enable-warnings=level option.
-# We use  -Wno-long-long because the Python headers use long long (at least in Python 2.7).
+
+# We don't use -pedantic with the C sources, to avoid these warnings in eggmarshalers.c:
+# "ISO C forbids conversion of object pointer to function pointer type"
 AC_LANG([C])
 MM_ARG_ENABLE_WARNINGS([GLOM_WFLAGS],
                        [-Wall],
-                       [-pedantic -Wall -Wextra -Wformat-security -Wno-missing-field-initializers 
-DGSEAL_ENABLE],
+                       [-Wall -Wextra -Wformat-security -Wno-missing-field-initializers -DGSEAL_ENABLE],
                        [G GDK GDK_PIXBUF CAIRO PANGO GTK GDA])
+
+# We use  -Wno-long-long because the Python headers use long long (at least in Python 2.7).
 AC_LANG([C++])
 MM_ARG_ENABLE_WARNINGS([GLOM_WXXFLAGS],
                        [-Wall],


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