Language
C++
Compiler
clang 10.0.0
Options
Warnings
Don't Use Boost
C++2a(GNU)
no pedantic
$ clang++ prog.cc -Wall -Wextra -std=gnu++2a
Exit Code:
0
Author
anonymous
over 4 years ago
C++
clang 10.0.0
Author
anonymous
over 4 years ago
$ clang++ prog.cc -Wall -Wextra -std=gnu++2a
prog.cc:2:14: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
char * str = "Modern C++";
^
prog.cc:2:8: warning: unused variable 'str' [-Wunused-variable]
char * str = "Modern C++";
^
2 warnings generated.