Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 2ac06241d277c969c0dee0f40fb4f00971a4d7f7)

Options
Warnings
Boost 1.73.0
C++2a
no pedantic
Raw compiler options
-Weverything

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2a -Weverything
prog.cc:11:11: warning: use of old-style cast [-Wold-style-cast]
   return (PMF_C2)pmf;   // C4407, change type of cast,
          ^       ~~~
prog.cc:10:8: warning: no previous prototype for function 'f1' [-Wmissing-prototypes]
PMF_C2 f1(PMF_C3 pmf) {
       ^
prog.cc:10:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
PMF_C2 f1(PMF_C3 pmf) {
^
static 
prog.cc:17:8: warning: 'nullptr' is incompatible with C++98 [-Wc++98-compat]
    f1(nullptr);
       ^
3 warnings generated.
Exit Code:
0