Commit: 211067d5576ddee90fbda63bfeaa2e9a1666bbbc
Parent: df66caf9b391e340214aedc43b7341dffbe91a31
Author: Szymon Janc <szymon.janc@codecoup.pl>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-04-20 21:00:00
Tree: 08a516ebcfc338af6af4a03baaa97bf1859dabfd

avctp: Fix compilation with GCC 10 This one is a false positive but since we never use more than UINPUT_MAX_NAME_SIZE bytes of name we can silence GCC by reducing size of source string. CC profiles/audio/bluetoothd-avctp.o In function ‘uinput_create’, inlined from ‘init_uinput’ at profiles/audio/avctp.c:1259:20: profiles/audio/avctp.c:1188:3: error: ‘strncpy’ output may be truncated copying 79 bytes from a string of length 248 [-Werror=stringop-truncation] 1188 | strncpy(dev.name, name, UINPUT_MAX_NAME_SIZE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors

Diffstat

M profiles/audio/avctp.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

View Full Diff | Patch