"cc1plus: all warnings being treated as errors"

1,081 views
Skip to first unread message

Sean

unread,
Jun 5, 2018, 7:40:51 AM6/5/18
to cpputest
Hi everyone,

I'm working on a project involving the ROOT package: https://root.cern.ch/.

Because the code I'm working on uses ROOT functions, I did specify where to find those functions in the CppUTest Makefile (under INCLUDE_DIRS).

The thing is, when I try to run my tests, I have a lot of Werror (for example for conversion to int from double), and the message: "cc1plus: all warnings being treated as errors".

Is there a way to ignore those Werror, or specify that cpputest doesn't have to check ROOT functions ?

Sean

James Grenning

unread,
Jun 9, 2018, 10:02:25 AM6/9/18
to cpputest

Hi Sean

Any warning you get in add will also show you the solution to silencing that warning.

In the error message you will see something like [-Wbalh-blah] or [-Werror:blah-blah]. You can add this flag to silence that warning -Wno-blah-blah

Hope that helps!

James


James Grenning - Author of TDD for Embedded C - wingman-sw.com/tddec
wingman-sw.com
wingman-sw.com/blog
twitter.com/jwgrenning
facebook.com/wingman.sw
wingman software

--
You received this message because you are subscribed to the Google Groups "cpputest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpputest+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages