[libgda] Added -DGSEAL_ENABLE to the --enable-warnings=fatal build.



commit ca5615322702447191f9733dc50df8affb159e11
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Nov 15 22:20:39 2011 +0100

    Added -DGSEAL_ENABLE to the --enable-warnings=fatal build.
    
    Also disabled a warning that glib now causes when using (deprecated)
    G_STATIC_MUTEX_INIT, and fixed a minor const warning.

 configure.ac                        |   14 +++++++++-----
 libgda/sqlite/gda-sqlite-provider.c |    2 +-
 2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index eb5c795..2778741 100644
--- a/configure.ac
+++ b/configure.ac
@@ -844,16 +844,20 @@ AC_ARG_ENABLE(default-binary,
 AM_CONDITIONAL(DEFAULT_BINARY, test "x$enable_default_binary" = xyes)
 
 # We use -Wno-address because SQLITE3_CALL() has an ifdefed definition that 
-# makes it hard to always avoid the warning.
+#   makes it hard to always avoid the warning.
 # We use -Wno-unused-variable because the lemon parser generator (in libgda's sources),
-# creates some generic macros that declare variables that are not always used. 
+#   creates some generic macros that declare variables that are not always used. 
 # We use -Wno-unused-parameter because the lemon parser generator (in libgda's sources),
-# produces generic code, and it's hard to fix that generated code.
+#   produces generic code, and it's hard to fix that generated code.
 # We use -Wno-pointer-sign because the sqlite source code (copied into libgda's sources)
-# has problems but we do not want to patch that code.
+#   has problems but we do not want to patch that code.
+# We use -Wno-missing-field-initializers because recent glib versions introduced this 
+#  and they refuse to fix it: https://bugzilla.gnome.org/show_bug.cgi?id=662797
+#  We should remove -Wno-missing-field-initializers when we replace the use of 
+#  the deprecated G_STATIC_MUTEX_INIT macro.
 DK_ARG_ENABLE_WARNINGS([COREDEPS_WFLAGS],
 	[-Wall],
-	[-Wall -Wextra -Wformat-security -Wno-address -Wno-unused-variable -Wno-unused-parameter -Wno-pointer-sign],
+	[-Wall -Wextra -Wformat-security -Wno-address -Wno-unused-variable -Wno-unused-parameter -Wno-pointer-sign -Wno-missing-field-initializers -DGSEAL_ENABLE],
 	[PANGO G GDK GDK_PIXBUF GTK])
 
 AC_SUBST(COREDEPS_CFLAGS)
diff --git a/libgda/sqlite/gda-sqlite-provider.c b/libgda/sqlite/gda-sqlite-provider.c
index aaf9e4e..51a82a1 100644
--- a/libgda/sqlite/gda-sqlite-provider.c
+++ b/libgda/sqlite/gda-sqlite-provider.c
@@ -3245,7 +3245,7 @@ gda_sqlite_provider_statement_execute (GdaServerProvider *provider, GdaConnectio
 			const GdaNumeric *gdan;
 
 			gdan = gda_value_get_numeric (value);
-			SQLITE3_CALL (sqlite3_bind_text) (ps->sqlite_stmt, i, gda_numeric_get_string(gdan), -1, SQLITE_TRANSIENT);
+			SQLITE3_CALL (sqlite3_bind_text) (ps->sqlite_stmt, i, gda_numeric_get_string((GdaNumeric*)gdan), -1, SQLITE_TRANSIENT);
 		}
 		else {
 			gchar *str;



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