]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r361065: pf tests: fix up a couple WARNS= 6 nits
authorKyle Evans <kevans@FreeBSD.org>
Thu, 21 May 2020 01:55:10 +0000 (01:55 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 21 May 2020 01:55:10 +0000 (01:55 +0000)
commit52347b77f5d48d9a236fbfd364ff067bebd29baf
tree6bf9e93023c9b1f66da46f052ba8fbf15cfb47ed
parent33fb349285ca1c8b0b1d0abb8e771f4d33d5a74c
MFC r361065: pf tests: fix up a couple WARNS= 6 nits

common_init_tbl is only used within this single CU, so it should be marked
static.

WARNS=6 also complained about the var defined by
`ATF_TC_WITH_CLEANUP(getastats);` being unused, which turns out to be
because it's not been hooked up in ATF_TP_ADD_TCS. kp@ did not immediately
recall any reason for this, and the case passes on my local system, so hook
it up.

Note that I've not yet set WARNS= 6 here. Investigation is underway to see
if we can feasibly default WARNS to 6 for src builds to catch directories
too deep to inherit a WARNS from the top-level subdirectories' Makefile.inc.
Those particular WARNS settings will be subsequently removed as they become
redundant with a more-global default.
tests/sys/netpfil/pf/ioctl/validation.c