Zren / material-decoration

Material-ish window decoration theme for KWin, with LIM, based on zzag's original design.
GNU General Public License v2.0
197 stars 17 forks source link

registerPlugin error when compiling #59

Open Zren opened 2 years ago

Zren commented 2 years ago
material-decoration/src/plugin.cc:30:37: error: ‘void KPluginFactory::registerPlugin(const QString&) [with T = Material::Button; typename std::enable_if<KPluginFactory::InheritanceChecker<impl>::enabled, int>::type <anonymous> = 0]’ is deprecated: Since 5.89. Use overload without keyword instead [-Werror=deprecated-declarations]
   30 |     registerPlugin<Material::Button>(QStringLiteral("button"));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/KF5/KCoreAddons/KPluginFactory:1,
                 from /home/chris/Code/kdecommunity/material-decoration/src/plugin.cc:24:
/usr/include/KF5/KCoreAddons/kpluginfactory.h:741:10: note: declared here
  741 |     void registerPlugin(const QString &keyword)
      |          ^~~~~~~~~~~~~~
In file included from /usr/include/KF5/KCoreAddons/KPluginFactory:1,
                 from /home/chris/Code/kdecommunity/material-decoration/src/plugin.cc:24:
material-decoration/src/plugin.cc:31:50: error: ‘void KPluginFactory::registerPlugin(const QString&) [with T = Material::ConfigurationModule; typename std::enable_if<KPluginFactory::InheritanceChecker<impl>::enabled, int>::type <anonymous> = 0]’ is deprecated: Since 5.89. Use overload without keyword instead [-Werror=deprecated-declarations]
   31 |     registerPlugin<Material::ConfigurationModule>(QStringLiteral("kcmodule"));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/KF5/KCoreAddons/KPluginFactory:1,
                 from /home/chris/Code/kdecommunity/material-decoration/src/plugin.cc:24:
/usr/include/KF5/KCoreAddons/kpluginfactory.h:741:10: note: declared here
  741 |     void registerPlugin(const QString &keyword)
      |          ^~~~~~~~~~~~~~
Zren commented 2 years ago