Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler warning on va.h #76

Closed
shirokovoi opened this issue Jun 21, 2017 · 0 comments · Fixed by #115
Closed

Compiler warning on va.h #76

shirokovoi opened this issue Jun 21, 2017 · 0 comments · Fixed by #115

Comments

@shirokovoi
Copy link

When I try to compile source which include va.h with -Wpedantic, I got following compiler warning:
va/va.h:1221:24: warning: ISO C++ forbids zero-size array ‘data’ [-Wpedantic] unsigned int data[0];

Compiler: gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406.

xhaihao referenced this issue in xhaihao/libva Sep 12, 2017
ISO C/C++ forbids zero-size array, but flexible array member is
supported since C99.

This fixes https://github.com/01org/libva/issues/76

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
xhaihao referenced this issue Sep 19, 2017
ISO C/C++ forbids zero-size array, but flexible array member is
supported since C99.

This fixes https://github.com/01org/libva/issues/76

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.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 a pull request may close this issue.

1 participant