[FFmpeg-devel] [PATCH] configure: remove -Werror=vla
Nicolas George
george at nsup.org
Wed Apr 7 18:34:30 EEST 2021
Derek Buitenhuis (12021-04-07):
> Sorry, misread - but I struggle to understand where pointers to VLA are considered
> not bad practice either.
To answer that, I need to know why you think VLAs are considered bad
practice.
VLAs on the stack are a bad practice because (1) they may use too much
of the stack in an unexpected way, and (2) they require extra registers
that ruin optimization in the whole function.
Obviously, it does not apply to pointers to VLA.
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/20210407/a69f5977/attachment.sig>
More information about the ffmpeg-devel
mailing list