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
-Wcomma

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2a -Wcomma
prog.cc:7:15: warning: self-comparison always evaluates to false [-Wtautological-compare]
   int l = (i != i,0);   // C4547
              ^
prog.cc:7:15: warning: inequality comparison result unused [-Wunused-comparison]
   int l = (i != i,0);   // C4547
            ~~^~~~
prog.cc:7:15: note: use '|=' to turn this inequality comparison into an or-assignment
   int l = (i != i,0);   // C4547
              ^~
              |=
prog.cc:7:19: warning: possible misuse of comma operator here [-Wcomma]
   int l = (i != i,0);   // C4547
                  ^
prog.cc:7:13: note: cast expression to void to silence warning
   int l = (i != i,0);   // C4547
            ^~~~~~
            static_cast<void>( )
prog.cc:7:8: warning: unused variable 'l' [-Wunused-variable]
   int l = (i != i,0);   // C4547
       ^
4 warnings generated.
Exit Code:
0