Skip to main content
Associate
September 13, 2024
Question

How to Ignore -Wsign-conversion Warning for core_cm4.h in STM32CubeIDE?

  • September 13, 2024
  • 2 replies
  • 971 views

I've added the following GCC compiler flags in STM32CubeIDE: -Wall, -Wextra, -Wconversion, -Wpedantic, -Wshadow, and -Wstrict-prototypes. However, I'm encountering a -Wsign-conversion warning in the core_cm4.h system file. How can I ignore this warning while keeping the other warnings active?

    2 replies

    Visitor II
    November 22, 2024

    kicking the tumbleweed, anyone have any suggestions?

    Pavel A.
    Super User
    November 22, 2024

    To ignore -Wsign-conversion add option -Wno-sign-conversion