[glom/glom-1-16] Set programming language for --enable-warnings macros
- From: Jon Nordby <jonnor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/glom-1-16] Set programming language for --enable-warnings macros
- Date: Mon, 4 Oct 2010 09:47:34 +0000 (UTC)
commit 48ccd4558048756996f002d5719b7a0c719a0965
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 995d989..a8c544c 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-10 David King <davidk openismus com>
Use GLOM_ABI_VERSION where possible
diff --git a/configure.ac b/configure.ac
index 73dbf5f..5d80dc5 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]