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

Warning: arithmetic on a pointer to void is a GNU extension. #373

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

fobser
Copy link
Contributor

@fobser fobser commented Dec 11, 2020

Arguably the cast to void* isn't even needed but this style is used all over the tree so I left that alone.

@wcawijngaards wcawijngaards merged commit 48c0383 into NLnetLabs:master Dec 11, 2020
wcawijngaards added a commit that referenced this pull request Dec 11, 2020
- Merge PR #373 from fobser: Warning: arithmetic on a pointer to void
  is a GNU extension.
@wcawijngaards
Copy link
Member

Merged it into the code repository. Thanks for that cleaner code!

The void* cast is here because I thought because some BSD and some compiler gave signedness warnings, about signedness of char really.

@fobser
Copy link
Contributor Author

fobser commented Dec 11, 2020

Yeah, I was afraid that there might be some ancient C compiler out there that wants the void cast.
Thanks for merging my (trivial) diffs, now I can compile without warnings :)

@fobser fobser deleted the void-arithmetic branch December 11, 2020 13:14
jedisct1 added a commit to jedisct1/unbound that referenced this pull request Dec 11, 2020
* nlnet/master:
  - Fix missing prototypes in the code.
  Changelog note for NLnetLabs#373 - Merge PR NLnetLabs#373 from fobser: Warning: arithmetic on a pointer to void   is a GNU extension.
  Changelog note for NLnetLabs#335 - Merge PR NLnetLabs#335 from fobser: Sprinkle in some static to prevent   missing prototype warnings.
  Warning: arithmetic on a pointer to void is a GNU extension.
  - Fix to squelch permission denied and other errors from remote host,   they are logged at higher verbosity but not on low verbosity.
  - Fix NLnetLabs#371: unbound-control timeout when Unbound is not running.
  - iana portlist updated.
  - make depend.
  Code repo continues for 1.13.1 in development.
  - Fix update, with write event check with streamreuse and fastopen.
  - Fix for NLnetLabs#283: fix stream reuse and tcp fast open.
  - Fix on windows to ignore connection failure on UDP, unless verbose.
  - Fix unbound-dnstap-socket to not use log routine from interrupt   handler and not print so frequently when invoked in sequence.
  - Fix NLnetLabs#356: deadlock when listening tcp.
  - Fix NLnetLabs#360: for the additionally reported TCP Fast Open makes TCP   connections fail, in that case we print a hint that this is   happening with the error in the logs.
  Sprinkle in some static to prevent missing prototype warnings.
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