Skip to content

Conversation

@anisa-su993
Copy link

Fixes Issue #150

clang gives flex array members a size of -2, which means the bad source code warning generated when checking if bits < 0 is always generated for flex arrays.

clang only assigns flex arrays a negative size. Therefore, this warning will never be generated for non flex arrays, which renders it inaccurate.

clang gives flex array members a size of -2, which means the bad source
code warning generated when checking if bits < 0 is always generated for flex
arrays.

clang only assigns flex arrays a negative size. Therefore, this warning
will never be generated for non flex arrays, which renders it
inaccurate.

Signed-off-by: Anisa Su <anisa.su@samsung.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant