Author
anonymous
over 5 years ago
Language
C
Compiler
gcc 9.2.0
Options
Warnings
C11(GNU)
no pedantic
Author
anonymous
over 5 years ago
$ gcc prog.c -Wall -Wextra -std=gnu11
prog.c: In function 'main':
prog.c:50:30: warning: passing argument 2 of 'stack_push' makes pointer from integer without a cast [-Wint-conversion]
50 | stack_push(&myStack, i);
| ^
| |
| int
prog.c:19:37: note: expected 'void *' but argument is of type 'int'
19 | void stack_push(Stack *stack, void* entry)
| ~~~~~~^~~~~
prog.c:55:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
55 | printf("%d\n", (int)stack_pop(&myStack));
| ^
1
0
Exit Code:
0