Advertisement
Guest User

Untitled

a guest
Oct 24th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. shawn@shawn-VGN-CR120E:~/stereograph-0.30a$ make
  2. gcc -Wall -O2 -Dlinux -c -o gfxio.o gfxio.c
  3. gfxio.c: In function ‘Resize_GFX’:
  4. gfxio.c:104:4: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
  5. memcpy(temp_gfx + y * width, gfx->Data + gfx->Width * y, width*sizeof(int));
  6. ^~~~~~
  7. gfxio.c:104:4: warning: incompatible implicit declaration of built-in function ‘memcpy’
  8. gfxio.c:104:4: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
  9. gfxio.c: In function ‘Write_Gfx_File’:
  10. gfxio.c:237:7: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
  11. if(strlen(file_name) >= 4) {
  12. ^~~~~~
  13. gfxio.c:237:7: warning: incompatible implicit declaration of built-in function ‘strlen’
  14. gfxio.c:237:7: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
  15. gfxio.c:238:9: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
  16. if(!strcmp(file_name + strlen(file_name) - 4, ".tga"))
  17. ^~~~~~
  18. gfxio.c: In function ‘Read_PPM’:
  19. gfxio.c:331:4: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
  20. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  21. ^~~~~
  22. gfxio.c:331:38: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’
  23. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  24. ^~~~~~
  25. gfxio.c:333:4: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
  26. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  27. ^~~~~
  28. gfxio.c:333:38: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’
  29. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  30. ^~~~~~
  31. gfxio.c:335:4: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
  32. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  33. ^~~~~
  34. gfxio.c:335:38: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’
  35. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  36. ^~~~~~
  37. gfxio.c:339:3: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
  38. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  39. ^~~~~
  40. gfxio.c:339:37: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’
  41. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  42. ^~~~~~
  43. In file included from /usr/include/pngconf.h:50:0,
  44. from /usr/include/png.h:364,
  45. from gfxio.c:26:
  46. gfxio.c: In function ‘Write_PNG’:
  47. gfxio.c:493:20: error: dereferencing pointer to incomplete type ‘png_struct {aka struct png_struct_def}’
  48. if (setjmp(png_ptr->jmpbuf)) {
  49. ^
  50. gfxio.c: In function ‘Read_TARGA’:
  51. gfxio.c:536:2: warning: incompatible implicit declaration of built-in function ‘memcpy’
  52. memcpy(header, check_header, sizeof(char)*8);
  53. ^~~~~~
  54. gfxio.c:536:2: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
  55. In file included from gfxio.c:21:0:
  56. gfxio.c: In function ‘Write_TARGA’:
  57. gfxio.c:697:7: warning: incompatible implicit declaration of built-in function ‘strlen’
  58. putc(strlen("created by stereograph"), ofile);
  59. ^
  60. gfxio.c:697:7: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
  61. <builtin>: recipe for target 'gfxio.o' failed
  62. make: *** [gfxio.o] Error 1
  63. shawn@shawn-VGN-CR120E:~/stereograph-0.30a$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement