Language
C
Compiler
gcc 9.2.0
Options
Optimization
C11
no pedantic
$ gcc prog.c -O2 -march=native -std=c11
Original value = 3
New value = 3
Within range
Exit Code:
0
Author
anonymous
over 5 years ago
C
gcc 9.2.0
Author
anonymous
over 5 years ago
$ gcc prog.c -O2 -march=native -std=c11
prog.c: In function 'main':
prog.c:27:5: warning: 'memset' writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=]
27 | memset(&c, 0xFF, 2 * sizeof(c));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Original value = 3
New value = 3
Within range