bwn(4): Fix outstanding bug in PHY-G tssi2dbm table generation caught by
-Wconstant-conversion, and remove now unnecessary warning suppression flags.
This commit is contained in:
parent
0bbfb20fe5
commit
e8a81142ab
@ -1326,15 +1326,11 @@ dev/bwi/bwiphy.c optional bwi
|
||||
dev/bwi/bwirf.c optional bwi
|
||||
dev/bwi/if_bwi.c optional bwi
|
||||
dev/bwi/if_bwi_pci.c optional bwi pci
|
||||
# XXX Work around clang warnings, until maintainer approves fix.
|
||||
dev/bwn/if_bwn.c optional bwn bhnd \
|
||||
compile-with "${NORMAL_C} ${NO_WSOMETIMES_UNINITIALIZED}"
|
||||
dev/bwn/if_bwn.c optional bwn bhnd
|
||||
dev/bwn/if_bwn_pci.c optional bwn pci bhnd bhndb bhndb_pci
|
||||
dev/bwn/if_bwn_phy_common.c optional bwn bhnd
|
||||
dev/bwn/if_bwn_phy_g.c optional bwn bhnd \
|
||||
compile-with "${NORMAL_C} ${NO_WSOMETIMES_UNINITIALIZED} ${NO_WCONSTANT_CONVERSION}"
|
||||
dev/bwn/if_bwn_phy_lp.c optional bwn bhnd \
|
||||
compile-with "${NORMAL_C} ${NO_WSOMETIMES_UNINITIALIZED}"
|
||||
dev/bwn/if_bwn_phy_g.c optional bwn bhnd
|
||||
dev/bwn/if_bwn_phy_lp.c optional bwn bhnd
|
||||
dev/bwn/if_bwn_phy_n.c optional bwn bhnd
|
||||
dev/bwn/if_bwn_util.c optional bwn bhnd
|
||||
dev/cardbus/cardbus.c optional cardbus
|
||||
|
@ -216,7 +216,7 @@ do { \
|
||||
} while (delta >= 2);
|
||||
|
||||
pg->pg_tssi2dbm[i] = MIN(MAX(BWN_TSSI2DBM(m1 * f, 8192), -127),
|
||||
128);
|
||||
127);
|
||||
}
|
||||
|
||||
pg->pg_flags |= BWN_PHY_G_FLAG_TSSITABLE_ALLOC;
|
||||
|
@ -38,8 +38,3 @@ SRCS.BWN_GPL_PHY+= if_bwn_phy_n_ppr.c
|
||||
SRCS.BWN_GPL_PHY+= if_bwn_phy_n_core.c
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
# XXX Work around clang warnings, until maintainer approves fix.
|
||||
CWARNFLAGS.if_bwn.c= ${NO_WSOMETIMES_UNINITIALIZED}
|
||||
CWARNFLAGS.if_bwn_phy_g.c= ${NO_WSOMETIMES_UNINITIALIZED} ${NO_WCONSTANT_CONVERSION}
|
||||
CWARNFLAGS.if_bwn_phy_lp.c= ${NO_WSOMETIMES_UNINITIALIZED}
|
||||
|
Loading…
Reference in New Issue
Block a user