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

Suppress "old style definition" warning #360

Merged
merged 1 commit into from
Sep 1, 2024

Conversation

Watson1978
Copy link
Contributor

This patch will suppress following warning message when compile ox with gcc

$ cd ext/ox
$ ruby extconf.rb
$ make
...
intern.c: In function 'ox_hash_init':
intern.c:70:6: warning: old-style function definition [-Wold-style-definition]
   70 | void ox_hash_init() {
      |      ^~~~~~~~~~~~
...

This patch will suppress following warning message when compile ox with gcc

```
$ cd ext/ox
$ ruby extconf.rb
$ make
...
intern.c: In function 'ox_hash_init':
intern.c:70:6: warning: old-style function definition [-Wold-style-definition]
   70 | void ox_hash_init() {
      |      ^~~~~~~~~~~~
...
```
@ohler55 ohler55 merged commit 30b4c1b into ohler55:develop Sep 1, 2024
19 checks passed
@Watson1978 Watson1978 deleted the old-style-definition branch September 1, 2024 20:31
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.

2 participants