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:11:9: warning: expression result unused [-Wunused-value]
   if ( f, k )   // C4546
        ^
prog.cc:11:10: warning: possible misuse of comma operator here [-Wcomma]
   if ( f, k )   // C4546
         ^
prog.cc:11:9: note: cast expression to void to silence warning
   if ( f, k )   // C4546
        ^
        static_cast<void>( )
2 warnings generated.
Exit Code:
0