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

Remove warnings with gcc 7+ #201

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

dkelson
Copy link

@dkelson dkelson commented Aug 24, 2018

Saw this cool project on Hacker News. Here are some very small patches to eliminate warnings with gcc v7+ and add Fedora dev instructions

Using -std=c99 causes gcc to define __STRICT_ANSI__ macro, which causes
all non-ANSI function declarations to "disappear" from the standard
headers.

Use feature test macro  _POSIX_C_SOURCE to make strdup() available even
with strict C99 compliance for GCC.
gcc 7+ warns about format truncation. Use asprintf instead of
snprintf.
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.

1 participant