gcc is making me cry.
First, the warning:
$ gcc -Wall buttontest.c
buttontest.c: In function `setup_widgets':
buttontest.c:84: warning: passing arg 1 of `GANDI_ch_2text_cr' makes pointer from integer without a cast
Now, the code:
84: btp = GANDIW_push_button_2text (NULL, buttontext[i]);
What's going on, here? I even tried changing NULL to (void *) NULL and (void *) 0. Same error. Am I an idiot?
Can anybody solve this in such a way that it passes -Wall -pedantic without a peep?
edit: Oops. The error from line 85 was something unrelated.