On 19/09/2023 10:19, Takashi Iwai wrote: > 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@xxxxxxxxxxxxxxx> > > While I applied it now, I wonder why this didn't show up with my local > test. I wondered about the same thing... > Which compiler are you using? $ gcc --version gcc (GCC) 13.2.1 20230801 -- Péter