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

Removed in-loop declarations from test_nc4.c #43

Merged
merged 2 commits into from
Dec 21, 2015
Merged

Conversation

Katetc
Copy link
Contributor

@Katetc Katetc commented Dec 21, 2015

In order to declare a variable inside of a for loop (as: "for(int i...") many compilers require the -c99 flag. To add this flag in cmake, we'd have to edit CMakeLists in the tests directory, or the examples directory, or any other directory where it is used. I think, perhaps, it would be easier to follow the c conventions in the rest of the PIO code and just declare the loop counter variables at the beginning of the function. I updated test_nc4.c to this, and now the project compiles without any extra CMakeList mucking about.

Katetc added a commit that referenced this pull request Dec 21, 2015
Removed in-loop declarations from test_nc4.c
@Katetc Katetc merged commit 5f583c1 into NCAR:master Dec 21, 2015
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