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

phi gcc phi.gcc@gmail.com
Wed Apr 10 07:47:00 GMT 2019


Hi All,

I try to find a way to locally (in a compile unit) disable this
annoying warning.

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....)
I am reluctant to #define exp MyExp has it render symbolic debuging of
it tedious.
I know I am not including <math.h> in anyway in this compile unit
I can't find a #pragma or _Pragma suitable for this.
I can't make my exp[] array  static (easily).

I guess I have exhausted my gcc knowledge. Any ideas/tricks  to let
gcc know that I don't want to use exp() builtin,  that kinda step in
my name space.
Thanx in advance,
Cheers
Phi



More information about the Gcc-help mailing list