[glom] Set programming language for --enable-warnings macros



commit 1bef9cc02d1a02f0be0d968a261a2c8e0ab5b748
Author: Jon Nordby <jonn openismus com>
Date:   Thu Sep 30 11:28:34 2010 +0200

    Set programming language for --enable-warnings macros
    
    The C++ warnings flags were being checked against the C compiler,
    which would silently fail if one were to use C++ specific warning flags

 ChangeLog    |    6 ++++++
 configure.ac |    2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b8cff05..1adb92d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-10-04  Jon Nordby  <jonn openismus com>
+
+	Set programming language explicitly around --enable-warnings macros
+
+	* configure.ac:
+
 2010-10-02  Murray Cumming  <murrayc murrayc com>
 
 	Choices combos: Reuse the list view implementation. Only works for Combo now.
diff --git a/configure.ac b/configure.ac
index 20ec03b..6807ea4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -187,10 +187,12 @@ AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX], ["$ISO_CODES_PREFIX"],
 
 # Evaluate the --enable-warnings=level option.
 MM_PREREQ([0.8])
+AC_LANG([C])
 MM_ARG_ENABLE_WARNINGS([GLOM_WFLAGS],
                        [-Wall],
                        [-Wall -Wextra -Wno-missing-field-initializers -DGSEAL_ENABLE],
                        [G GDK GDK_PIXBUF GTK])
+AC_LANG([C++])
 MM_ARG_ENABLE_WARNINGS([GLOM_WXXFLAGS],
                        [-Wall],
                        [-Wall -Wextra -Wno-missing-field-initializers -DGSEAL_ENABLE],



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