Compiler warnings "set_label" incompatible pointer
- From: Daniel Dieterle <daniel dieterle ws>
- To: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Compiler warnings "set_label" incompatible pointer
- Date: Tue, 23 Oct 2007 13:59:28 +0200
Hi,
if i compile following code i get some warnings:
void on_button_run_clicked( GtkWidget * widget, GtkEntry *entry,
gpointer user_data )
{
/* Run changes to Pause */
gtk_button_set_label (widget, ( const gchar *) "Pause");
/* calles every 100 ms function draw_satellite */
satellite_is_running = gtk_timeout_add( 100, draw_satellite, (gpointer)
NULL );
An the warnings:
handlers.c: In function 'on_button_run_clicked':
handlers.c:133: warning: passing argument 1 of 'gtk_button_set_label'
from incompatible pointer type
handlers.c:137: warning: passing argument 2 of 'gtk_timeout_add' from
incompatible pointer type
I compile with:
gcc -c handlers.c -std=c99 `pkg-config --cflags gtk+-2.0 libglade-2.0`
I can't imaging why the compiler complains himself?
You know why? Tell me! ;-)
Daniel.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]