Linux: -Wbitwise-conditional-parentheses in drivers/clk/sunxi/clk-sunxi.c

Created on 22 Oct 2019  路  2Comments  路  Source: ClangBuiltLinux/linux

drivers/clk/sunxi/clk-sunxi.c:1083:30: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses]
                                                 data->div[i].critical ?
                                                 ~~~~~~~~~~~~~~~~~~~~~ ^
drivers/clk/sunxi/clk-sunxi.c:1083:30: note: place parentheses around the '|' expression to silence this warning
                                                 data->div[i].critical ?
                                                                       ^
                                                                      )
drivers/clk/sunxi/clk-sunxi.c:1083:30: note: place parentheses around the '?:' expression to evaluate it first
                                                 data->div[i].critical ?
                                                                       ^
                                                 (
1 warning generated.

Patch sent: https://lore.kernel.org/lkml/[email protected]/

-Wbitwise-conditional-parentheses [BUG] linux [FIXED][LINUX] 5.4

All 2 comments

Was this page helpful?
0 / 5 - 0 ratings