[PATCH] Add override specifier
José Abílio Matos
jamatos at lyx.org
Mon Oct 5 16:43:59 UTC 2020
On Monday, October 5, 2020 5:19:46 PM WEST Jean-Marc Lasgouttes wrote:
> Fixed
>
> JMarc
Now, if I may ask what about the following kind of warning:
In file included from ./ui_TabularUi.h:28:
/home/jamatos/lyx/lyx/src/frontends/qt/GuiSetBorder.h:30:59: warning: 'QFlags'
is deprecated: Use default constructor instead [-Wdeprecated-declarations]
GuiSetBorder(QWidget * parent = nullptr, Qt::WindowFlags fl =
nullptr);
^
/usr/include/qt5/QtCore/qflags.h:123:5: note: 'QFlags' has been explicitly
marked deprecated here
QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline
QFlags(Zero) noexcept : i(0) {}
^
/usr/include/qt5/QtCore/qglobal.h:294:33: note: expanded from macro
'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/usr/include/qt5/QtCore/qcompilerdetection.h:675:55: note: expanded from macro
'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
There is another type but this seems to be the single instance:
In file included from /home/jamatos/lyx/lyx/src/EnchantChecker.cpp:14:
/usr/include/enchant/enchant++.h:55:25: warning: 'enchant::Exception::what'
hides overloaded virtual function [-Woverloaded-virtual]
virtual const char * what () throw() {
^
/usr/bin/../lib/gcc/x86_64-redhat-linux/10/../../../../include/c++/10/bits/
exception.h:75:5: note: hidden overloaded virtual function
'std::exception::what' declared here: different qualifiers ('const' vs
unqualified)
what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_NOTHROW;
^
--
José Abílio
More information about the lyx-devel
mailing list