[FFmpeg-devel] [PATCH] avutils/opt: fix discarded-qualifiers compiler warning

Nicolas George george at nsup.org
Tue Mar 9 16:00:48 EET 2021


Nuo Mi (12021-03-09):
> Or more aggressively, is it feasible to treat all warnings as errors in the
> future? :)

No. Warnings come and go, and a lot of new warnings are bogus.

For example the new warning that tells you that snprintf(buf,
sizeof(buf), "%d", x) will overflow if sizeof(buf) < 11 even though we
know that x is between 0 and 10.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210309/3d035774/attachment.sig>


More information about the ffmpeg-devel mailing list