mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 04:22:44 +00:00
bthidd: declare appropriate size bitstring
The bitstring declared on the stack was much too large, and gcc noticed that we weren't memset()ing all of it. This one was harmless. Reported by: GCC -Wmemset-elt-size Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D45900
This commit is contained in:
parent
f0a7df4a6c
commit
6bd85498ec
@ -339,7 +339,7 @@ kbd_maxkey(void)
|
||||
int32_t
|
||||
kbd_process_keys(bthid_session_p s)
|
||||
{
|
||||
bitstr_t diff[bitstr_size(xsize)];
|
||||
bitstr_t bit_decl(diff, xsize);
|
||||
int32_t f1, f2, i;
|
||||
|
||||
assert(s != NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user