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

A fix for non-standard macro usage and for a warning. #143

Merged
merged 3 commits into from
Dec 24, 2023
Merged

A fix for non-standard macro usage and for a warning. #143

merged 3 commits into from
Dec 24, 2023

Conversation

Fingolfin1196
Copy link
Contributor

This pull request fixes two small issues that I have found while trying to re-implement the code from USAGE.md:

  • The macro YOJIMBO_NEW uses a variadic parameter, but YOJIMBO_DECLARE_MESSAGE_TYPE leaves this parameter empty. This is non-standard (see e. g. Stack Overflow) and leads to a warning with clang or gcc.
  • YOJIMBO_VIRTUAL_SERIALIZE_FUNCTIONSin BlockMessage is terminated with a semicolon, which is superfluous and leads to a warning (at least with some options on clang).

@gafferongames gafferongames merged commit f45a5df into mas-bandwidth:master Dec 24, 2023
4 checks passed
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