/in/foo.cc: In function 'int read()':
/in/foo.cc:9:15: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
return y=='-'?-x:x;
~~~~~~^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:9:15: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
return y=='-'?-x:x;
~~~~~~^~~~~
/in/foo.cc:6:15: note: 'y' was declared here
int x=0;char y;char o=getchar();
^
/in/foo.cc:9:15: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
return y=='-'?-x:x;
~~~~~~^~~~~
/in/foo.cc:6:15: note: 'y' was declared here
int x=0;char y;char o=getchar();
^
/in/foo.cc:9:15: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
return y=='-'?-x:x;
~~~~~~^~~~~
/in/foo.cc:6:15: note: 'y' was declared here
int x=0;char y;char o=getchar();
^