In the Borland C++ (bcc64 non-modern) codebase I’m working on, a number of class definitions emit the following warning:
warning W7041: Interface 'XXX' does not derive from IUnknown. (Interfaces should derive from IUnknown)
I can confirm that this warning does not cause trouble in my context. Rather than interfere with the class hierarchy, I would like to suppress the warning. I have tried:
- Compiler options UI – warning is not featured there
#pragma diagnostic ignored "-Wall"
(Clang)#pragma warn disable
(bcc32 only)
But the warning still appears. I suspect that this warning is probably a language extension specific to the Borland frameworks. Therefore, the standard compiler mechanisms might not work.
Any ideas how to specifically suppress this warning, either from source code or compiler options?