19 Sep
2023
19 Sep
'23
9:19 a.m.
On Tue, 19 Sep 2023 09:12:05 +0200, Peter Ujfalusi wrote:
The recent enablement of -Wformat-truncation leads to a false-positive warning for mixer_scarlett_gen2.c.
For suppressing the warning, replace snprintf() with scnprintf(). As stated in the above, truncation doesn't matter.
Fixes: 78bd8f5126f8 ("ALSA: usb-audio: scarlett_gen2: Fix -Wformat-truncation warning") Signed-off-by: Peter Ujfalusi peter.ujfalusi@linux.intel.com
While I applied it now, I wonder why this didn't show up with my local test. Which compiler are you using?
thanks,
Takashi