From fb29718d3ac64bdc9e1f2a3d15a506f7798e4a76 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Tue, 4 Feb 2020 20:32:10 +0200 Subject: Fix some compiler warnings Summary: - Fix order of member initialisation (compiling with -Wreorder) - Use Q_UNUSED where needed - QAtomicInteger::loadRelaxed() has been available since Qt 5.14 Test Plan: make && ctest Reviewers: #frameworks, dfaure, apol Reviewed By: dfaure Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D27158 --- src/kconfig_compiler/kconfig_compiler.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/kconfig_compiler/kconfig_compiler.cpp') diff --git a/src/kconfig_compiler/kconfig_compiler.cpp b/src/kconfig_compiler/kconfig_compiler.cpp index 605dd2b5..4f9fa3f2 100644 --- a/src/kconfig_compiler/kconfig_compiler.cpp +++ b/src/kconfig_compiler/kconfig_compiler.cpp @@ -665,6 +665,8 @@ QString indent(QString text, int spaces) bool hasErrors(KConfigXmlParser &parser, const ParseResult& parseResult, const KConfigParameters &cfg) { + Q_UNUSED(parser) + if (cfg.className.isEmpty()) { std::cerr << "Class name missing" << std::endl; return true; -- cgit v1.2.1