I try to compile gmock headers and get tons of warnings like:
/opt/foreign_components/gmock-1.7.0/fused-src/gtest/gtest.h:10298:40: warning: 'testing::internal::ParamIteratorInterface* testing::internal::ValuesInIteratorRangeGenerator::Iterator::Clone() const [with T = bool]' can be marked override [-Wsuggest-override]
I already include the gmock headers with -isystem
as described here:
How to suppress GCC warnings from library headers?
I compile with:
g++ -Wsuggest-override -I ../ -I ../../generic/ -isystem /opt/foreign_components/gmock-1.7.0/fused-src/gmock/ -isystem /opt/foreign_components/gmock-1.7.0/fused-src -g -Wall -pedantic -pthread -std=c++14 -O2 /opt/foreign_components/gmock-1.7.0/fused-src/gmock-gtest-all.cc -c -o build-ut-std-xsysg-nomemdbg-o2-dynamic-noncov//opt/foreign_components/gmock-1.7.0 /fused-src/gmock-gtest-all.o
How can I solve this issue?