Skip to main content
vbk22398
Senior
August 21, 2024
Solved

Unknown warnings

Screenshot 2024-08-21 112214.png

I am getting the above warning! I am unable to find what is causing the issue. If I comment the line number 5442, then no warnings or no errors. Help me resolve this issue.

This topic has been closed for replies.
gbm
gbmBest answer
Super User
August 21, 2024

The warning text says it explicitly - just read it. You have two different #defines of the same symbol. One is unconditional, the other one conditional - make them both conditional/exclusive using #ifdef -- #else -- #endif.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

4 replies

Associate III
August 21, 2024

Please take a screenshot of your warning details

Andrew Neil
Super User
August 21, 2024

@Passerby wrote:

Please take a screenshot of your warning details


No, please don't use screenshots - copy and paste as text, as for code:

https://community.st.com/t5/stm32-mcus-boards-and-hardware/nucleo-f767zi-ethernet-problem/m-p/703634/highlight/true#M20574:~:text=A%20screenshot%20is,code%20%2D%20instructions%20here%3A

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
gbm
gbmBest answer
Super User
August 21, 2024

The warning text says it explicitly - just read it. You have two different #defines of the same symbol. One is unconditional, the other one conditional - make them both conditional/exclusive using #ifdef -- #else -- #endif.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
TDK
August 21, 2024

@gbm gave you the answer, but also note than you can hover over the line in question to read what the warning message is, or view the output of the Console tab to see the message. You don't have to be in the dark.

"If you feel a post has answered your question, please click ""Accept as Solution""."