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