Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 9087209314caafed4b232d4a66287f2d16054ad3)

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:3:6: warning: no previous prototype for function 'function1' [-Wmissing-prototypes]
void function1() {
     ^
prog.cc:3:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void function1() {
^
static 
prog.cc:7:4: warning: expression result unused [-Wunused-value]
   function1;   // C4551
   ^~~~~~~~~
prog.cc:9:2: warning: C++98 requires newline at end of file [-Wc++98-compat-pedantic]
}
 ^
3 warnings generated.
Exit Code:
0