roban/CosmoloPy

power.c: incompatible implicit declaration of built-in function 'exit'

Xarthisius opened this issue · 1 comments

power.c is missing include <stdlib.h> statement which results in:

x86_64-pc-linux-gnu-gcc -pthread -O2 -pipe -Wimplicit-function-declaration -fPIC -I/usr/include/python2.7 -c ./cosmolopy/EH/power.c -o build-2.7/temp.linux-x86_64-2.7/./cosmolopy/EH/power.o
./cosmolopy/EH/power.c: In function 'TFmdm_set_cosm':
./cosmolopy/EH/power.c:136:2: warning: implicit declaration of function 'exit'
./cosmolopy/EH/power.c:136:2: warning: incompatible implicit declaration of built-in function 'exit'
./cosmolopy/EH/power.c:143:2: warning: incompatible implicit declaration of built-in function 'exit'

Thanks very much for the solution. I'd been ignoring these warnings.

Fixed in commit 10c1152