Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 344a3d0bc0fb0868b519c3342b4982d6121eece3)

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:9:4: warning: function 'CList' could be declared with attribute 'noreturn' [-Wmissing-noreturn]
   {
   ^
prog.cc:14:7: warning: no previous prototype for function 'operator new' [-Wmissing-prototypes]
void* operator new(size_t size, const char* , int )
      ^
prog.cc:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void* operator new(size_t size, const char* , int )
^
static 
prog.cc:27:14: warning: unused variable 'pList1' [-Wunused-variable]
      CList* pList1 = new CList(10);
             ^
prog.cc:41:14: warning: unused variable 'pList2' [-Wunused-variable]
      CList* pList2 = new(__FILE__, __LINE__) CList(20);   // C4291
             ^
prog.cc:46:2: warning: C++98 requires newline at end of file [-Wc++98-compat-pedantic]
}
 ^
5 warnings generated.
Exit Code:
0