media PRESUBMIT: add warning for V4L2 initialized as aggregate
V4L2 structs are often composed of unions of other structs. When such a struct is initialized as an aggregate with a braced-init-list, only the first union member is actually initialized. If posterior union members are larger, they are left partially initialized. This CL adds a presubmit for users to avoid such ={} initialization. Bug: b:153935975 Change-Id: If52bb7b670fe5914e864a6d840f6064cae8b7baf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2300274 Commit-Queue: Miguel Casas <mcasas@chromium.org> Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Reviewed-by:
Alexandre Courbot <acourbot@chromium.org> Cr-Commit-Position: refs/heads/master@{#790835}
Showing
Please register or sign in to comment