Advertisement
Guest User

Untitled

a guest
Feb 17th, 2012
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. djb@twin:~/projects/Learning/C/SO$ ./test.sh
  2. make: Warning: File `ex4.c' has modification time 0.0016 s in the future
  3. cc -Wall -g ex4.c -o ex4
  4. ex4.c: In function ‘main’:
  5. ex4.c:10:5: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat]
  6. ex4.c:7:9: warning: unused variable ‘age’ [-Wunused-variable]
  7. ex4.c:11:11: warning: ‘height’ is used uninitialized in this function [-Wuninitialized]
  8. make: warning: Clock skew detected. Your build may be incomplete.
  9. ==5254== Memcheck, a memory error detector
  10. ==5254== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
  11. ==5254== Using Valgrind-3.6.1-Debian and LibVEX; rerun with -h for copyright info
  12. ==5254== Command: ./ex4
  13. ==5254==
  14. ==5254== Use of uninitialised value of size 4
  15. ==5254== at 0x4078B2B: _itoa_word (_itoa.c:195)
  16. ==5254== by 0x407CE55: vfprintf (vfprintf.c:1619)
  17. ==5254== by 0x40831DE: printf (printf.c:35)
  18. ==5254== by 0x4052112: (below main) (libc-start.c:226)
  19. ==5254==
  20. ==5254== Conditional jump or move depends on uninitialised value(s)
  21. ==5254== at 0x4078B33: _itoa_word (_itoa.c:195)
  22. ==5254== by 0x407CE55: vfprintf (vfprintf.c:1619)
  23. ==5254== by 0x40831DE: printf (printf.c:35)
  24. ==5254== by 0x4052112: (below main) (libc-start.c:226)
  25. ==5254==
  26. ==5254== Conditional jump or move depends on uninitialised value(s)
  27. ==5254== at 0x407CC10: vfprintf (vfprintf.c:1619)
  28. ==5254== by 0x40831DE: printf (printf.c:35)
  29. ==5254== by 0x4052112: (below main) (libc-start.c:226)
  30. ==5254==
  31. ==5254== Conditional jump or move depends on uninitialised value(s)
  32. ==5254== at 0x407C742: vfprintf (vfprintf.c:1619)
  33. ==5254== by 0x40831DE: printf (printf.c:35)
  34. ==5254== by 0x4052112: (below main) (libc-start.c:226)
  35. ==5254==
  36. I am 0 years old.
  37. I am 68882420 inches tall.
  38. ==5254==
  39. ==5254== HEAP SUMMARY:
  40. ==5254== in use at exit: 0 bytes in 0 blocks
  41. ==5254== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
  42. ==5254==
  43. ==5254== All heap blocks were freed -- no leaks are possible
  44. ==5254==
  45. ==5254== For counts of detected and suppressed errors, rerun with: -v
  46. ==5254== Use --track-origins=yes to see where uninitialised values come from
  47. ==5254== ERROR SUMMARY: 22 errors from 4 contexts (suppressed: 11 from 6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement