HomeFreeBSD

Merge r358030 from the clang1000-import branch:

Description

Merge r358030 from the clang1000-import branch:

Work around new clang 10.0.0 -Werror warning:

sys/arm/allwinner/aw_cir.c:208:41: error: converting the result of '<<' to a boolean; did you mean '((1 & 255) << 23) != 0'? [-Werror,-Wint-in-bool-context]

active_delay = (AW_IR_ACTIVE_T + 1) * (AW_IR_ACTIVE_T_C ? 128 : 1);
                                       ^

sys/arm/allwinner/aw_cir.c:130:39: note: expanded from macro 'AW_IR_ACTIVE_T_C'
#define AW_IR_ACTIVE_T_C ((1 & 0xff) << 23)

^

Add the != 0 part to indicate that we indeed want to compare against
zero.

MFC after: 3 days

Details

Provenance
dimAuthored on
Parents
rS358043: Fix the NFS code so that it can handle ext_pgs mbufs. This is quite a
Branches
Unknown
Tags
Unknown