I have the following error:

Function SelectTest in line 3332 overrides another function at line 720. I tried to mark override simply but it failed. could you please help. Building on MAC high sierra with Qt 5.9.4

thank you


./qcustomplot.h:3332:18: warning: 'selectTest' overrides a member function but is not marked
'override' [-Winconsistent-missing-override]
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const = 0;
./qcustomplot.h:720:18: note: overridden virtual function is here
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details=0) const;
clang(18609,0x7fffa85aa340) malloc: *** mach_vm_map(size=18446744073150513152) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
clang: error: unable to execute command: Abort trap: 6
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg: