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

empty initializer braces #75

Open
monniaux opened this issue Mar 22, 2019 · 2 comments
Open

empty initializer braces #75

monniaux opened this issue Mar 22, 2019 · 2 comments

Comments

@monniaux
Copy link

Yarpgen sometimes generates empty initializer lists, which are not allowed in strict C99.

yarpgen --seed=64 generates in driver.c:

tf_4_struct_2 tf_4_array_2 [4] = {{} , {} , {} , {} };
@dbabokin
Copy link
Contributor

Looks like we need to differentiate between c99 and gnu99 dialects.

What is the practical use of strict C99? I.e. what compiler is tested and with what options?

@monniaux
Copy link
Author

monniaux commented Mar 27, 2019 via email

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

No branches or pull requests

2 participants