]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setterm: fix bitfield warning [smatch]
authorSami Kerola <kerolasa@iki.fi>
Sat, 25 Feb 2017 17:35:17 +0000 (17:35 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 28 Feb 2017 13:38:22 +0000 (14:38 +0100)
term-utils/setterm.c:179:27: warning: dubious bitfield without explicit
`signed' or `unsigned'

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
term-utils/setterm.c

index 1cf59957b43e6d673fa9abae2f0c77d0f53ec453..8e969c2b3a16255688c5e3dc0cd2ef15e74c6e7b 100644 (file)
@@ -176,7 +176,7 @@ struct setterm_control {
        int opt_rt_len;         /* regular tab length */
        int opt_tb_array[TABS_MAX + 1]; /* array for tab list */
        /* colors */
-       int opt_fo_color:4, opt_ba_color:4, opt_ul_color:4, opt_hb_color:4;
+       unsigned int opt_fo_color:4, opt_ba_color:4, opt_ul_color:4, opt_hb_color:4;
        /* boolean options */
        unsigned int opt_cu_on:1, opt_li_on:1, opt_bo_on:1, opt_hb_on:1,
            opt_bl_on:1, opt_re_on:1, opt_un_on:1, opt_rep_on:1,