How to exclude warning messages from tests compilation ?

60 views
Skip to first unread message

מקסים סקופין

unread,
May 5, 2022, 12:01:16 PM5/5/22
to throwth...@googlegroups.com
Hello everyone !

How can I exclude warning messages from test compilation ?  They do not affect the passing of the tests, and the red color of the warnings is only annoying.

Thanks in advance,

Maxim

David Good

unread,
May 5, 2022, 12:19:52 PM5/5/22
to throwth...@googlegroups.com
Not sure how to do that, but in general, I would treat warnings as errors and try to fix them rather than make them go away. Or better yet, use compiler flags to tell the compiler which warnings you are not interested in.

--David

--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/CAMPrmQrqQzvrPveO0kQeLKyU0WC7FvXoD_4Mh0gHMqXzg9sWiw%40mail.gmail.com.

מקסים סקופין

unread,
May 5, 2022, 1:00:16 PM5/5/22
to throwth...@googlegroups.com
Thank you, David. 

But in my case, Ceedling give warning on uint8_t variable that casted in the function to uint32_t parameter. It's not affect working of test, but writed in red color and it disturb.

чт, 5 мая 2022 г., 19:19 David Good <david...@gmail.com>:
You received this message because you are subscribed to a topic in the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/throwtheswitch/y48kJSQZJ04/unsubscribe.
To unsubscribe from this group and all its topics, send an email to throwtheswitc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/CALMFhSy9Xf64MPymw0UmLQ6H5VGw51yfbXt4GG-j_Cqo4R0zYw%40mail.gmail.com.

מקסים סקופין

unread,
May 5, 2022, 3:07:13 PM5/5/22
to throwth...@googlegroups.com
David, how can I to rewrite :tools: in project.yml file ? I want to try add gcc with option -Wno-all for experiment. I don't search it in documentation...

чт, 5 мая 2022 г., 20:00 מקסים סקופין <tela...@gmail.com>:

מקסים סקופין

unread,
May 5, 2022, 4:11:38 PM5/5/22
to throwth...@googlegroups.com
This warning come from legacy code, the core_cm3.h file. It's headpain to edit him... :-(

чт, 5 мая 2022 г., 22:07 מקסים סקופין <tela...@gmail.com>:

מקסים סקופין

unread,
May 6, 2022, 1:22:14 AM5/6/22
to throwth...@googlegroups.com
The project.yml have option :flags: and it may be probably to exclude warnings by this option... 

Can anybody give me example for this ? 

чт, 5 мая 2022 г., 23:11 מקסים סקופין <tela...@gmail.com>:

מקסים סקופין

unread,
May 6, 2022, 7:37:48 AM5/6/22
to throwth...@googlegroups.com
It was solved.

In file core_cm3.h should be : 
 uint32_t *vectors = (uint32_t *)&(SCB->VTOR);
instead of :
 uint32_t *vectors = (uint32_t *)SCB->VTOR;

‫בתאריך יום ו׳, 6 במאי 2022 ב-8:22 מאת מקסים סקופין <‪tela...@gmail.com‬‏>:‬
Reply all
Reply to author
Forward
0 new messages