Fox 1.6: -Wno-inconsistent-missing-override
Enno Rehling <[email protected]> Fri, 4 Aug 2023 21:21:55 +0200
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Message-ID | <[email protected]> |
When I compile my application with GCC or Clang, this happens:
/home/enno/csmapfx/infodlg.h:14:2: warning: 'getMetaClass' overrides a
member function but is not marked 'override'
[-Winconsistent-missing-override]
FXDECLARE(FXInfoDlg)
^
/usr/include/fox-1.6/FXObject.h:98:35: note: expanded from macro 'FXDECLARE'
virtual const FX::FXMetaClass* getMetaClass() const { return
&metaClass; } \
^
/usr/include/fox-1.6/FXDialogBox.h:41:3: note: overridden virtual
function is here
FXDECLARE(FXDialogBox)
^
/usr/include/fox-1.6/FXObject.h:98:35: note: expanded from macro 'FXDECLARE'
virtual const FX::FXMetaClass* getMetaClass() const { return
&metaClass; } \
^
The only way I can make that warning go away without modifying Fox is to
compile with -Wno-inconsistent-missing-override. Could the missing
override keyword be added? I've installed Fox from the official Debian
and brew packages, respectively.
Enno.