]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r357272:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 4 Feb 2020 19:35:40 +0000 (19:35 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 4 Feb 2020 19:35:40 +0000 (19:35 +0000)
commit65a88ae57356ea49065b3aa2c62ec4d043233a34
tree5b05402d91d615cc8299021bb470f542976655ad
parent8ae6d3c371daa1eb1006dfd0cc6b250a6cfffe90
MFC r357272:

Merge r357271 from the clang1000-import branch:

Fix the following -Werror warning from clang 10.0.0 in bsnmpd:

usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c:1235:43: error: overlapping comparisons always evaluate to true [-Werror,-Wtautological-overlap-compare]
                            begemotBridgeStpPortEnable_enabled ||
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~

Work around it by casting the enum values to the type of val->v.integer.

git-svn-id: svn://svn.freebsd.org/base/stable/10@357520 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c