cancel
Showing results for 
Search instead for 
Did you mean: 

Warning message turns into error after upate

VanshajKaistha
Associate II

As i updated my STM32CubeIDE to the latest site version available, i am getting new errors in my working code.

Those errors before update were displayed as warnings but after update they are turning into errors.

 

passing argument 2 of 'xfunc' from incompatible pointer type [-Wincompatible-pointer-types]

My -Werror is unchecked from the start.

If someone can help me how to resolve it, Thanks in advance.

8 REPLIES 8
Ghofrane GSOURI
ST Employee

Hello @VanshajKaistha 

It would  be useful if you could share your project.

I will be waiting for your feedback.

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

@Ghofrane GSOURI the project isn't publicly available, i can share specific details you need.

Hello @VanshajKaistha 

Could you please share :

Screenshare of the full compiler error message , the prototype and implementation of the function named in the error, the exact line of code where you call it, and the declaration of the argument you pass as its 2nd parameter. 

 Along with that, GCC toolchain version and any non‑default warning settings are useful.

PS: If you prefer, you can share your project with me via a private message.

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

I texted you in the private message @Ghofrane GSOURI please check.

Hello @VanshajKaistha 

I have answered your private message.

As this is the ST Community, we need to keep the technical discussion public, so that other users can read it and benefit from the support as well.

If parts of your project are confidential, you can share only the relevant files or a reduced example here, or use private message strictly to exchange sensitive project material while keeping the technical analysis and conclusions in the public thread.

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

 

 
 

You have reached the limit for number of private messages that you can send for now. Please try again later.

 

I got this in the private msg so i will attach the snippet here

Hello @VanshajKaistha 

From the screenshot I can see there are pointer type mismatch errors around the EepromReadData calls, but the image alone is not enough to give a precise fix. To diagnose this properly I need you to paste the relevant code as text, specifically:  the prototype/declaration of EepromReadData from its header file,  the type definitions and declarations of lc_param and pa_param,

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.