dsw / oink-stack

Oink is a collaboration of C++ static analysis tools.

Home Page:http://danielwilkerson.com/oink/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning: implicit declaration of function 'set_region_range' is invalid in C99

sam-ellis opened this issue · comments

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);
  ^