From: Stephen Hemminger Date: Tue, 31 Oct 2023 23:03:58 +0000 (-0700) Subject: ssfilter: fix clang warning about conversion X-Git-Tag: v6.6.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70b9e5998fc74d346696923cd4c0f5a7b42e7e8c;p=thirdparty%2Fiproute2.git ssfilter: fix clang warning about conversion Clang warns: ssfilter_check.c:100:13: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion] Signed-off-by: Stephen Hemminger --- diff --git a/misc/ssfilter_check.c b/misc/ssfilter_check.c index a188bb346..02709ce8e 100644 --- a/misc/ssfilter_check.c +++ b/misc/ssfilter_check.c @@ -76,8 +76,8 @@ out: struct filter_check_t { bool (*check)(void); - int checked:1, - supported:1; + unsigned int checked:1, + supported:1; }; static struct filter_check_t filter_checks[SSF__MAX] = {