'setup' overrides a member function but is not marked 'override'
Closed this issue · 2 comments
Hi, I get the following error when running "make all" according to the guide in the README,
compiling ExampleTest.cpp
tests/ExampleTest.cpp:10:10: fatal error: 'setup' overrides a member function but is not marked 'override' [-Wsuggest-override]
void setup()
^
/Users/xx/tools/cpputest/include/CppUTest/Utest.h:55:18: note: overridden virtual function is here
virtual void setup();
^
1 error generated.
make: *** [test-obj/tests/ExampleTest.o] Error 1
Im running on Mac
However when using the alternative in step 7) Docker support,
docker-compose run cpputest make all
Everything compiles and the tests run as expected.
Any idea whats going wrong here?
Hi
Sorry for the later reply. I would turn that warning off -Wno-suggest-override in the makefile.
Compiler warnings are a moving target. It's a never-ending battle.
Cheers, James
I get same error but in my makefile don't have -Wno-sugguest-override