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: implicit declaration of function 'set_region_range' is invalid in C99 #15

Open
sam-ellis opened this issue Oct 15, 2016 · 0 comments

Comments

@sam-ellis
Copy link
Contributor

When compiling oink on Mac OS X using Apple LLVM version 8.0.0 (clang-800.0.38) the following warning is seen:

gcc -c -o regions.o -I.. -iquote  -DNMEMDEBUG -DSIZEOF_VOIDP=4 -Wall -g -O2 regions.c
In file included from regions.c:288:
../libregion/pages.c:270:3: warning: implicit declaration of function 'set_region_range' is invalid in C99 [-Wimplicit-function-declaration]
  set_region_range(newp, (char *)newp + request_bytes, FREEPAGE);
  ^
sam-ellis added a commit to sam-ellis/oink-stack that referenced this issue Oct 15, 2016
Fixed issue dsw#15. Added forward declaration of set_region_range() to remove compiler warning.
dsw added a commit that referenced this issue Oct 21, 2016
Update pages.c to fix issue #15.
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

No branches or pull requests

1 participant