summaryrefslogtreecommitdiff
path: root/sound/hda
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-26 14:58:03 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-26 15:01:37 +0200
commitd6b340d7cb33c816ef4abe8143764ec5ab14a5cc (patch)
treea646443a51ae7e622f32acfd7df38ed5420b83cb /sound/hda
parent63623646a06358833766016d8c1fe14d6576b3d0 (diff)
ALSA: trident: Suppress gcc string warning
The meddlesome gcc warns about the possible shortname string in trident driver code: sound/pci/trident/trident.c: In function ‘snd_trident_probe’: sound/pci/trident/trident.c:126:2: warning: ‘strcat’ accessing 17 or more bytes at offsets 36 and 20 may overlap 1 byte at offset 36 [-Wrestrict] strcat(card->shortname, card->driver); It happens since gcc calculates the possible string size from card->driver, but this can't be true since we did set the string just before that, and they are much shorter. For shutting it up, use the exactly same string set to card->driver for strcat() to card->shortname, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda')
0 files changed, 0 insertions, 0 deletions