[Info-Ingres] ABF compilation on 64 bit Linux

Morten Lehrmann lehr at lehr.invalid
Mon Aug 20 14:05:15 CDT 2007


Grant Croker wrote:
> GCC 4.1 checks to see if the return type of a function matches the type
> declared in the function prototype. Could you provide examples of the
> complete warning message to see what functions are being used?

An example:

Compiling 'spoerg.osq' . . . 
spoerg.c: In function 'II02spoerg': 
spoerg.c:1182: warning: incompatible implicit declaration of built-in
function ' 
memset' 
spoerg.c: In function 'udfoer_24526': 
spoerg.c:3090: warning: incompatible implicit declaration of built-in
function ' 
memset' 
...cut (in this file I get the warning 11 times).

Lines 1182 and 3090 of spoerg.c are identical and reads:

memset(_PTR_ IIdata_area, '\0', sizeof(IIdata_area));

However, in other source code files the warning concerns functions as
sprinf, printf, strlen, memcpy and others.

Can I avoid the warnings by passing some option to GCC? How can I control
which options are given to GCC?

Regards,
Morten



More information about the Info-Ingres mailing list