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

Various minor cleanups + adding GitHub Actions CI (no coverage yet) #67

Merged
merged 4 commits into from Mar 29, 2022

Conversation

iphydf
Copy link
Contributor

@iphydf iphydf commented Mar 26, 2022

These are all the changes I've had to make to get things to compile when submoduled
into https://github.com/TokTok/c-toxcore. Since cmp isn't a library that gets installed,
it is compiled with the same strict compiler flags as the rest of the code.

Feel free to cherry-pick commits or do things differently. I'll be maintaining my fork
until upstream compiles with all the warning flags we use.

- Added `-Wno-c99-extensions` because we use `_Bool` (via `bool`).
- Added some missing `break`s in switch statements.
- Made the error string array `static`.
- Corrected treatment of `WORDS_BIGENDIAN` to be in accordance with the
  readme, which says if you don't set it, we default to runtime
  detection (which compilers actually optimise out).
@camgunz
Copy link
Owner

camgunz commented Mar 29, 2022

This all looks great! Thanks so much for sending this upstream 👍

@camgunz camgunz merged commit 88ed040 into camgunz:master Mar 29, 2022
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

2 participants