Open Quuxplusone opened 7 years ago
The following code won't produce a -Wuninitialized for a:
-Wuninitialized
a
int main() { int *a; (void) &a; *a = 4; return 0; }
The following code will produce a -Wuninitialized for a:
int main() { int *a; // (void) &a; *a = 4; return 0; }
On wandbox: https://wandbox.org/permlink/NQjAivSK9Dc3BB9L
The following code won't produce a
-Wuninitialized
fora
:The following code will produce a
-Wuninitialized
fora
: