Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C

Compiler

gcc HEAD 9.0.1 20190307 (experimental)

Options
Warnings
C11(GNU)
no pedantic

Author

anonymous

over 6 years ago

$ gcc prog.c -Wall -Wextra -std=gnu11
prog.c: In function 'main':
prog.c:5:14: warning: 'pchar' is used uninitialized in this function [-Wuninitialized]
    5 | #define P(N) printf(#N ": %p\n", N);
      |              ^~~~~~
prog.c:9:11: note: 'pchar' was declared here
    9 |     char *pchar;
      |           ^~~~~
prog.c:5:14: warning: 'pshort' is used uninitialized in this function [-Wuninitialized]
    5 | #define P(N) printf(#N ": %p\n", N);
      |              ^~~~~~
prog.c:10:12: note: 'pshort' was declared here
   10 |     short *pshort;
      |            ^~~~~~
prog.c:5:14: warning: 'pint' is used uninitialized in this function [-Wuninitialized]
    5 | #define P(N) printf(#N ": %p\n", N);
      |              ^~~~~~
prog.c:11:10: note: 'pint' was declared here
   11 |     int *pint;
      |          ^~~~
global: (nil)
pchar: (nil)
pshort: 0x7ffd48ca3500
pint: 0x400400
Exit Code:
0