Use GINT_TO_POINTER casts to remove compiler warnings.

1998-06-18  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* testglib.c (main): Use GINT_TO_POINTER casts to remove compiler
	warnings.

	* grel.c: #include <string.h>
This commit is contained in:
Federico Mena Quintero 1998-06-18 20:37:11 +00:00 committed by Arturo Espinosa
parent 860af205b6
commit 05b2f03c6a
12 changed files with 64 additions and 6 deletions

View File

@ -1,3 +1,10 @@
1998-06-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* testglib.c (main): Use GINT_TO_POINTER casts to remove compiler
warnings.
* grel.c: #include <string.h>
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
* glib.h (GScanner): cleanups of the structure fields (binary

View File

@ -1,3 +1,10 @@
1998-06-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* testglib.c (main): Use GINT_TO_POINTER casts to remove compiler
warnings.
* grel.c: #include <string.h>
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
* glib.h (GScanner): cleanups of the structure fields (binary

View File

@ -1,3 +1,10 @@
1998-06-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* testglib.c (main): Use GINT_TO_POINTER casts to remove compiler
warnings.
* grel.c: #include <string.h>
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
* glib.h (GScanner): cleanups of the structure fields (binary

View File

@ -1,3 +1,10 @@
1998-06-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* testglib.c (main): Use GINT_TO_POINTER casts to remove compiler
warnings.
* grel.c: #include <string.h>
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
* glib.h (GScanner): cleanups of the structure fields (binary

View File

@ -1,3 +1,10 @@
1998-06-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* testglib.c (main): Use GINT_TO_POINTER casts to remove compiler
warnings.
* grel.c: #include <string.h>
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
* glib.h (GScanner): cleanups of the structure fields (binary

View File

@ -1,3 +1,10 @@
1998-06-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* testglib.c (main): Use GINT_TO_POINTER casts to remove compiler
warnings.
* grel.c: #include <string.h>
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
* glib.h (GScanner): cleanups of the structure fields (binary

View File

@ -1,3 +1,10 @@
1998-06-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* testglib.c (main): Use GINT_TO_POINTER casts to remove compiler
warnings.
* grel.c: #include <string.h>
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
* glib.h (GScanner): cleanups of the structure fields (binary

View File

@ -1,3 +1,10 @@
1998-06-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
* testglib.c (main): Use GINT_TO_POINTER casts to remove compiler
warnings.
* grel.c: #include <string.h>
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
* glib.h (GScanner): cleanups of the structure fields (binary

View File

@ -17,6 +17,7 @@
*/
#include "glib.h"
#include <stdarg.h>
#include <string.h>
typedef struct _GRealRelation GRealRelation;
typedef struct _GRealTuples GRealTuples;

1
grel.c
View File

@ -17,6 +17,7 @@
*/
#include "glib.h"
#include <stdarg.h>
#include <string.h>
typedef struct _GRealRelation GRealRelation;
typedef struct _GRealTuples GRealTuples;

View File

@ -477,11 +477,11 @@ main (int argc,
gparray = g_ptr_array_new ();
for (i = 0; i < 10000; i++)
g_ptr_array_add (gparray, (void*)i);
g_ptr_array_add (gparray, GINT_TO_POINTER (i));
for (i = 0; i < 10000; i++)
if (g_ptr_array_index (gparray, i) != (void*)i)
g_print ("array fails: %p ( %p )\n", g_ptr_array_index (gparray, i), (void*)i);
if (g_ptr_array_index (gparray, i) != GINT_TO_POINTER (i))
g_print ("array fails: %p ( %p )\n", g_ptr_array_index (gparray, i), GINT_TO_POINTER (i));
g_ptr_array_free (gparray, TRUE);

View File

@ -477,11 +477,11 @@ main (int argc,
gparray = g_ptr_array_new ();
for (i = 0; i < 10000; i++)
g_ptr_array_add (gparray, (void*)i);
g_ptr_array_add (gparray, GINT_TO_POINTER (i));
for (i = 0; i < 10000; i++)
if (g_ptr_array_index (gparray, i) != (void*)i)
g_print ("array fails: %p ( %p )\n", g_ptr_array_index (gparray, i), (void*)i);
if (g_ptr_array_index (gparray, i) != GINT_TO_POINTER (i))
g_print ("array fails: %p ( %p )\n", g_ptr_array_index (gparray, i), GINT_TO_POINTER (i));
g_ptr_array_free (gparray, TRUE);