[ create a new paste ] login | about

Link: http://codepad.org/SP5OQOS2    [ raw code | fork ]

Plain Text, pasted on Mar 15:
1
2
3
4
5
6
7
8
9
$ gcc -ansi -pedantic -Wall -Wextra foo.c -o foo
foo.c: In function ‘main’:
foo.c:15:2: warning: passing argument 1 of ‘foo’ from incompatible pointer type [enabled by default]
  foo(bar);
  ^
foo.c:8:6: note: expected ‘void * (*)(void)’ but argument is of type ‘void (*)(void)’
 void foo(void *callback(void))
      ^



Create a new paste based on this one


Comments: