[glom/glom-1-14] Set programming language for --enable-warnings macros



commit 494fd6b9b8dd4b9c8610a7f568fee8e6f6902e3b
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 8e007a5..f26bf99 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-09-23  David King  <davidk openismus com>
 
 	Improve use of defines
diff --git a/configure.ac b/configure.ac
index c044ffe..bd3d385 100644
--- a/configure.ac
+++ b/configure.ac
@@ -184,10 +184,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]