gobject-introspection r159 - in trunk: . tools



Author: juergbi
Date: Wed Mar 12 15:08:27 2008
New Revision: 159
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=159&view=rev

Log:
2008-03-12  Juerg Billeter  <j bitron ch>

	* tools/scanner.c: (g_igenerator_new):
	* tools/scannerparser.y:
	Fix compiler warnings.


Modified:
   trunk/ChangeLog
   trunk/tools/scanner.c
   trunk/tools/scannerparser.y

Modified: trunk/tools/scanner.c
==============================================================================
--- trunk/tools/scanner.c	(original)
+++ trunk/tools/scanner.c	Wed Mar 12 15:08:27 2008
@@ -55,7 +55,7 @@
 
   igenerator->typedef_table = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
   igenerator->struct_or_union_or_enum_table =
-    g_hash_table_new_full (g_str_hash, g_str_equal, g_free, csymbol_unref);
+    g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)csymbol_unref);
 
   igenerator->type_map = g_hash_table_new (g_str_hash, g_str_equal);
   igenerator->type_by_lower_case_prefix =

Modified: trunk/tools/scannerparser.y
==============================================================================
--- trunk/tools/scannerparser.y	(original)
+++ trunk/tools/scannerparser.y	Wed Mar 12 15:08:27 2008
@@ -1404,7 +1404,7 @@
   g_return_val_if_fail (file != NULL, FALSE);
   
   const_table = g_hash_table_new_full (g_str_hash, g_str_equal,
-				       g_free, csymbol_unref);
+				       g_free, (GDestroyNotify)csymbol_unref);
   
   lineno = 1;
   yyin = file;



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