Language
C
Compiler
gcc 8.2.0
Options
Warnings
C11(GNU)
no pedantic
$ gcc prog.c -Wall -Wextra -std=gnu11 Exit Code:
0
Author
anonymous
over 7 years ago
C
gcc 8.2.0
Author
anonymous
over 7 years ago
$ gcc prog.c -Wall -Wextra -std=gnu11 prog.c: In function 'main':
prog.c:19:11: warning: passing argument 1 of 'fubar' from incompatible pointer type [-Wincompatible-pointer-types]
fubar(thorogood);
^~~~~~~~~
prog.c:1:25: note: expected 'const char **' but argument is of type 'char **'
void fubar(const char **as) {
~~~~~~~~~~~~~^~