Language
C++
Compiler
gcc 9.2.0
Options
Warnings
Boost 1.72.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-9.2.0/include -std=gnu++2a
0
Exit Code:
0
Author
anonymous
about 5 years ago
C++
gcc 9.2.0
Author
anonymous
about 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-9.2.0/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:21:42: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct foo_t'; use assignment or value-initialization instead [-Wclass-memaccess]
21 | memset(&settings, 0, sizeof(settings));
| ^
prog.cc:9:8: note: 'struct foo_t' declared here
9 | struct foo_t
| ^~~~~
0