Linux: -Wxor-used-as-pow in lib/test_bpf.c

Created on 19 Aug 2019  路  3Comments  路  Source: ClangBuiltLinux/linux

../lib/test_bpf.c:870:13: warning: result of '10 ^ 300' is 294; did you mean '1e300'? [-Wxor-used-as-pow]
                { { 4, 10 ^ 300 }, { 20, 10 ^ 300 } },
                       ~~~^~~~~
                       1e300
../lib/test_bpf.c:870:13: note: replace expression with '0xA ^ 300' to silence this warning

This is a new warning: https://github.com/llvm/llvm-project/commit/920890e26812f808a74c60ebc14cc636dac661c1

I will send a patch for this after work.

-Wxor-used-as-pow [BUG] linux [FIXED][LINUX] 5.4

All 3 comments

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nickdesaulniers picture nickdesaulniers  路  4Comments

nathanchance picture nathanchance  路  3Comments

nathanchance picture nathanchance  路  3Comments

tpimh picture tpimh  路  5Comments

nathanchance picture nathanchance  路  3Comments