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

Eliminate compile warnings #16

Merged
merged 5 commits into from
Oct 12, 2016

Conversation

sonOfRa
Copy link
Collaborator

@sonOfRa sonOfRa commented Oct 10, 2016

These are not behavioural changes, only cosmetic changes to eliminate compile-time warnings.

I'm doing these things as PRs rather than committing directly in hopes of somebody eyeballing my changes. If you don't have the time to do this at this point, I'll switch to simply committing my changes directly after testing.

Fixes #15

While C99 does allow this, rake-compiler forces this warning on, thus
disallowing mixed declarations and code.
In most cases this seemed to be copypasted code, using Data_Get_Struct
where it wasn't needed.
Make the for-loop counter variable unsigned, since we're comparing to
sizeof(), which always returns an unsigned value.
This allows us to see possible mistakes earlier, allowing for a stricter
adherance to the C standard
@sonOfRa sonOfRa mentioned this pull request Oct 10, 2016
@sonOfRa sonOfRa merged commit bb94834 into domcleal:master Oct 12, 2016
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.

None yet

1 participant