|
From: Enno R. <enn...@gm...> - 2023-08-04 19:22:05
|
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.
|