Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.89 KB | None | 0 0
  1. ERROR
  2.  
  3. rm -f main *.o *.d
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. pruebas_alumno.c: In function ‘pruebas_cola_alumno’:
  10. pruebas_alumno.c:128:26: error: passing argument 2 of ‘cola_destruir’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  11.      cola_destruir(cola_d,pila_destruir);
  12.                           ^~~~~~~~~~~~~
  13. In file included from pruebas_alumno.c:6:0:
  14. cola.h:30:6: note: expected ‘void (*)(void *)’ but argument is of type ‘void (*)(pila_t *) {aka void (*)(struct pila *)}
  15.  void cola_destruir(cola_t *cola, void destruir_dato(void*));
  16.       ^~~~~~~~~~~~~
  17. cc1: all warnings being treated as errors
  18. <builtin>: recipe for target 'pruebas_alumno.o' failed
  19. make: *** [pruebas_alumno.o] Error 1
  20. 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
  21. make: Target 'all' not remade because of errors.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement