media: gspca/gl860-mi1320/ov9655: avoid -Wstring-concatenation warning
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 4 Oct 2021 14:09:33 +0000 (15:09 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 19 Oct 2021 07:08:38 +0000 (08:08 +0100)
commit3ae5c3bc07f602c7abbfad1c75f3d288851a9611
tree8b29bca70b0b2eb26ed6c9e14d3d47ffdf1261fa
parent1cab969d55df67fc368f28918c1ec20126937867
media: gspca/gl860-mi1320/ov9655: avoid -Wstring-concatenation warning

Newer clang versions are suspicious of definitions that mix concatenated
strings with comma-separated arrays of strings, this has found real bugs
elsewhere, but this seems to be a false positive:

drivers/media/usb/gspca/gl860/gl860-mi1320.c:62:37: error: suspicious concatenation of string literals in an array initialization; did you
mean to separate the elements with a comma? [-Werror,-Wstring-concatenation]
        "\xd3\x02\xd4\x28\xd5\x01\xd0\x02" "\xd1\x18\xd2\xc1"
                                           ^
                                          ,
drivers/media/usb/gspca/gl860/gl860-mi1320.c:62:2: note: place parentheses around the string literal to silence warning
        "\xd3\x02\xd4\x28\xd5\x01\xd0\x02" "\xd1\x18\xd2\xc1"

Replace the string literals by compound initializers, using normal hex numbers.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/gspca/gl860/gl860-mi1320.c
drivers/media/usb/gspca/gl860/gl860-ov9655.c