Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang 8.0.0

Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-8.0.0/include -std=gnu++2a
prog.cc:10:36: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
    for(int i=0; ( x[ (c = f(0)) ] == 4 ); )
                   ~~~~~~~~~~~~~~~~^~~~
prog.cc:10:36: note: remove extraneous parentheses around the comparison to silence this warning
    for(int i=0; ( x[ (c = f(0)) ] == 4 ); )
                 ~~                ^    ~
prog.cc:10:36: note: use '=' to turn this equality comparison into an assignment
    for(int i=0; ( x[ (c = f(0)) ] == 4 ); )
                                   ^~
                                   =
1 warning generated.
Exit Code:
0