Fix compiler warning on shift overflow in QCA vendor definitions
Fix the following compiler error: qca-vendor.h:5892:54: error: result of ‘1 << 31’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Werror=shift-overflow=] 5892 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31, This "1" needs to be marked unsigned for this case of MSB=1. Signed-off-by: Chaoli Zhou <quic_zchaoli@quicinc.com>
This commit is contained in:
parent
c5b950b6af
commit
1f39f85b72
1 changed files with 1 additions and 1 deletions
|
@ -5889,7 +5889,7 @@ enum qca_wlan_vendor_channel_prop_flags {
|
|||
/* HE 40 with extension channel below */
|
||||
QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
|
||||
/* HE 40 intolerant */
|
||||
QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
|
||||
QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue