Skip to main content
Associate II
April 3, 2026
Question

Warning message turns into error after upate

  • April 3, 2026
  • 1 reply
  • 251 views

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.

1 reply

Ghofrane GSOURI
Technical Moderator
April 3, 2026

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.
Associate II
April 3, 2026

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

Ghofrane GSOURI
Technical Moderator
April 3, 2026

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.