Closed morungos closed 2 years ago
Thanks for the heads up. Trust Apple to be on top of trends... or is it just me who should finally embrace C++11?
I think the proper solution would be to add the override
keywords, but the lack of them might spread all over the place, so deprecating those warnings sounds like a better idea, at least as a stop-gap.
I can't reproduce this problem for testing, but is the flag needed also for CMAKE_C_FLAGS
, not only CMAKE_CXX_FLAGS
? If so, this means somewhere in onnx2c there is a mixup with which flags to use.
The above commit adds override
to all (I hope) overriding functions, which I think fixes this issue. Please re-open if I missed some.
I'm now using a Monterey Mac - macOS 12.0.1, but the build fails. It seems that
-Wall
now defaults to throwing errors onoverrides a member function but is not marked 'override'
. I've attached a log of themake
output: log.txt.gcc reports a version:
Simple resolution: I added
-Wno-inconsistent-missing-override
to theCMAKE_C_FLAGS
andCMAKE_CXX_FLAGS
values inCMakeLists.txt