Language
C++
Compiler
clang 9.0.0
Options
Warnings
Optimization
Boost 1.76.0
C++2a(GNU)
-pedantic
$ clang++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.76.0/clang-9.0.0/include -std=gnu++2a -pedantic Exit Code:
0
Author
anonymous
almost 5 years ago
C++
clang 9.0.0
Author
anonymous
almost 5 years ago
$ clang++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.76.0/clang-9.0.0/include -std=gnu++2a -pedantic prog.cc:18:18: warning: variable 'uninitialized' is uninitialized when used here [-Wuninitialized]
func1(s, uninitialized, n);
^~~~~~~~~~~~~
prog.cc:14:24: note: initialize the variable 'uninitialized' to silence this warning
char* uninitialized;
^
= nullptr
1 warning generated.