Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR
- rm -f main *.o *.d
- gcc -g -O2 -std=c99 -Wall -Werror -pedantic -Wformat=2 -Wshadow -Wpointer-arith -Wunreachable-code -Wconversion -Wno-sign-conversion -Wbad-function-cast -DCORRECTOR -c -o pruebas_catedra.o pruebas_catedra.c
- gcc -g -O2 -std=c99 -Wall -Werror -pedantic -Wformat=2 -Wshadow -Wpointer-arith -Wunreachable-code -Wconversion -Wno-sign-conversion -Wbad-function-cast -DCORRECTOR -c -o testing.o testing.c
- gcc -g -O2 -std=c99 -Wall -Werror -pedantic -Wformat=2 -Wshadow -Wpointer-arith -Wunreachable-code -Wconversion -Wno-sign-conversion -Wbad-function-cast -DCORRECTOR -c -o main.o main.c
- gcc -g -O2 -std=c99 -Wall -Werror -pedantic -Wformat=2 -Wshadow -Wpointer-arith -Wunreachable-code -Wconversion -Wno-sign-conversion -Wbad-function-cast -DCORRECTOR -c -o cola.o cola.c
- gcc -g -O2 -std=c99 -Wall -Werror -pedantic -Wformat=2 -Wshadow -Wpointer-arith -Wunreachable-code -Wconversion -Wno-sign-conversion -Wbad-function-cast -DCORRECTOR -c -o pruebas_alumno.o pruebas_alumno.c
- pruebas_alumno.c: In function ‘pruebas_cola_alumno’:
- pruebas_alumno.c:128:26: error: passing argument 2 of ‘cola_destruir’ from incompatible pointer type [-Werror=incompatible-pointer-types]
- cola_destruir(cola_d,pila_destruir);
- ^~~~~~~~~~~~~
- In file included from pruebas_alumno.c:6:0:
- cola.h:30:6: note: expected ‘void (*)(void *)’ but argument is of type ‘void (*)(pila_t *) {aka void (*)(struct pila *)}’
- void cola_destruir(cola_t *cola, void destruir_dato(void*));
- ^~~~~~~~~~~~~
- cc1: all warnings being treated as errors
- <builtin>: recipe for target 'pruebas_alumno.o' failed
- make: *** [pruebas_alumno.o] Error 1
- gcc -g -O2 -std=c99 -Wall -Werror -pedantic -Wformat=2 -Wshadow -Wpointer-arith -Wunreachable-code -Wconversion -Wno-sign-conversion -Wbad-function-cast -DCORRECTOR -c -o pila.o pila.c
- make: Target 'all' not remade because of errors.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement