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

Update pcg_basic.c function definition to match header #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ianfhunter
Copy link

If compiled with -Wstrict-prototypes using emcc (the emscripten compiler), it successfully catches that this function header is empty (though it is correctly 'void' in the associated header)

error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
   67 | uint32_t pcg32_random() { return pcg32_random_r(&pcg32_global); }
      |                      ^
      |                       void

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