c - warning: passing argument 1 of makes integer from pointer without a cast [enabled by default] -


itemprop = "text">

I have this function:

  zero myFunc (INT start, INT end) {/ / Statement}  

I'm calling it this way:

  myFunc (AR [new_1]. Message, rr [new_2].);  

What error produces: Warning: logging 1 of a cast [enabled by default] makes an integer without indicator

Arrivals are defined by a straight array and globally:

  MY_STRUCT arr [100];  

MY_STRUCT is defined as:

  typedef struct MY_STRUCT {INT number; MsgType * Message; } MY_STRUCT;  

Anyone can help me solve this warning?

Your task is expecting INT argument:

< Pre> zero myFunc (start INT, INT end)

Unfortunately you are going through these things Ar [new_1]. Message , which is a message type indicator, so the message.

I suspect you should:

  myFunc (AR [new_1] .Num, AR [new_2] .Num);  

Comments