Implicit declarations cause build failures
Submitted by Thibaut Paumard
Link to original bug (#660262)
Description
Created attachment 197585 add missing declarations and #includes
Hi,
As the Debian maintainer for gimp-gap (2.6.0), I have encountered several breakages due to the fact that several #include directives are missing (and a couple of function declarations need to be provided by hand).
The 2 problems which can (or have) occurred due to this are:
- when the compiler gets stricter, it sometimes starts failing at guessing a prototype (-> build failure);
- the implicit return value is int, which is too short to hold a void* on 64 bit architectures and causes various build and run-time failures.
Please consider applying the attached patch (applied in Debian).
Regards, Thibaut.
Patch 197585, "add missing declarations and #includes":
implicit-function-declaration