Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
gtknode
gtknode-1.0.0-fix-build-warnings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gtknode-1.0.0-fix-build-warnings.patch of Package gtknode
diff -Ndurp gtknode-1.0.0/priv/c_src/gtknode_marshal.c gtknode-1.0.0-fix-build-warnings/priv/c_src/gtknode_marshal.c --- gtknode-1.0.0/priv/c_src/gtknode_marshal.c 2015-10-14 14:27:10.000000000 +0300 +++ gtknode-1.0.0-fix-build-warnings/priv/c_src/gtknode_marshal.c 2015-11-01 03:19:12.492865858 +0200 @@ -19,12 +19,7 @@ void* hash_lookup(gchar* key) { return (void*) g_hash_table_lookup(ghash, (gconstpointer) key); } static void ghFunc(gpointer key,gpointer value,gpointer user_data){ - g_message("hash_foreach %s %d", (gchar*) key, value); -} -static void hash_printall() { - extern GHashTable* ghash; - hash_init(); - g_hash_table_foreach(ghash, ghFunc, NULL); + g_message("hash_foreach %s %ld", (gchar*) key, (long)value); } /***************************************************************************/ @@ -35,7 +30,7 @@ static char* get_type_name(const gchar* int ii = 1; str[0] = tolower(name[0]); - while ( c = name[i++] ){ + while ( (c = name[i++]) ){ if ( isupper(c) ) { str[ii++] = '_'; str[ii++] = tolower(c); @@ -152,7 +147,7 @@ void gn_put_string(ei_x_buff *xbuf, char void gn_store_obj(gchar *bf, GObject *w) { - sprintf(bf,"%d", (long)w); + sprintf(bf,"%lu", (unsigned long)w); if ( ! hash_lookup(bf) ) { /* ref all objs that are sent to erl to avoid garbing */ g_object_ref(w); @@ -182,7 +177,7 @@ void gn_put_struct(ei_x_buff *xbuf, char gchar key[200]; gchar name[24]; - g_assert( (sprintf(name,"%d", (long)struct_p) < sizeof(name)) ); + g_assert( (sprintf(name,"%lu", (unsigned long)struct_p) < sizeof(name)) ); g_assert( (strlen(type)+sizeof(name)+4) < sizeof(key) ); memcpy(key, type, strlen(type)+1); strcat(key, "-"); @@ -247,10 +242,10 @@ gboolean gn_get_arg_gchar_fix(ei_x_buff /* if gn_get_arg_(g)char returns TRUE, *a must be freed */ gboolean gn_get_arg_char(ei_x_buff *xbuf, char *B, int *I, char **a){ - gn_get_arg_gchar(xbuf,B,I,a); + return gn_get_arg_gchar(xbuf,B,I,a); } gboolean gn_get_arg_gchar(ei_x_buff *xbuf, char *B, int *I, gchar **a) { - int type, size, dummy; + int type, size; if ( ei_get_type(B, I, &type, &size) ) { gn_enc_1_error(xbuf, "bad_type"); @@ -378,7 +373,6 @@ gboolean gn_get_arg_list(ei_x_buff *XBUF gchar* type_name, void** list) { GType gtyp; GType* tlist; - char tname[MAXATOMLEN+1]; int list_len, i; if ( strcmp(type_name,"GType") != 0 ) { /* only GType* yet */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor