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

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2a -Wcomma
prog.cc:8:11: warning: equality comparison result unused [-Wunused-comparison]
   if ( i == 0, k )   // C4549
        ~~^~~~
prog.cc:8:11: note: use '=' to turn this equality comparison into an assignment
   if ( i == 0, k )   // C4549
          ^~
          =
prog.cc:8:15: warning: possible misuse of comma operator here [-Wcomma]
   if ( i == 0, k )   // C4549
              ^
prog.cc:8:9: note: cast expression to void to silence warning
   if ( i == 0, k )   // C4549
        ^~~~~~
        static_cast<void>( )
2 warnings generated.
Exit Code:
0