built-in function 'exp' declared as non-function

Segher Boessenkool segher@kernel.crashing.org
Wed Apr 10 07:56:00 GMT 2019


Hi phi,

On Wed, Apr 10, 2019 at 09:46:45AM +0200, phi gcc wrote:
> built-in function 'exp' declared as non-function
> 
> exp is a symbol of mine (An array of struct), not a function.
> 
> I can't change the Makefile CFLAGS  that are setup tight (-Wall etc....)

Preferably you should add --no-builtin-exp.  But you can also add a line

#pragma GCC diagnostic ignored "-Wbuiltin-declaration-mismatch"


Segher



More information about the Gcc-help mailing list