[partition] Reduce warnings from KPMCore
- make KPMHelper.h an "everything include" and suppress warnings from it, then use it in the tests.
This commit is contained in:
parent
d26fde6647
commit
4a08fdbb92
@ -24,9 +24,16 @@
|
|||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wdocumentation"
|
#pragma clang diagnostic ignored "-Wdocumentation"
|
||||||
#pragma clang diagnostic ignored "-Wsuggest-destructor-override"
|
#pragma clang diagnostic ignored "-Wsuggest-destructor-override"
|
||||||
|
#pragma clang diagnostic ignored "-Winconsistent-missing-destructor-override"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <backend/corebackend.h>
|
#include <backend/corebackend.h>
|
||||||
|
#include <core/device.h>
|
||||||
|
#include <core/lvmdevice.h>
|
||||||
|
#include <core/partition.h>
|
||||||
|
#include <core/partitionrole.h>
|
||||||
|
#include <core/partitiontable.h>
|
||||||
|
#include <fs/filesystem.h>
|
||||||
#include <fs/filesystemfactory.h>
|
#include <fs/filesystemfactory.h>
|
||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
|
@ -15,10 +15,6 @@
|
|||||||
#include "partition/KPMManager.h"
|
#include "partition/KPMManager.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
#include <core/lvmdevice.h>
|
|
||||||
#include <core/partition.h>
|
|
||||||
#include <fs/filesystemfactory.h>
|
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include <QtTest/QtTest>
|
#include <QtTest/QtTest>
|
||||||
|
@ -10,8 +10,9 @@
|
|||||||
#ifndef CLEARMOUNTSJOBTESTS_H
|
#ifndef CLEARMOUNTSJOBTESTS_H
|
||||||
#define CLEARMOUNTSJOBTESTS_H
|
#define CLEARMOUNTSJOBTESTS_H
|
||||||
|
|
||||||
|
#include "partition/KPMHelper.h"
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <core/device.h>
|
|
||||||
|
|
||||||
class CreateLayoutsTests : public QObject
|
class CreateLayoutsTests : public QObject
|
||||||
{
|
{
|
||||||
|
@ -12,12 +12,7 @@
|
|||||||
|
|
||||||
#include "JobQueue.h"
|
#include "JobQueue.h"
|
||||||
|
|
||||||
// CalaPM
|
#include "partition/KPMHelper.h"
|
||||||
#include <core/device.h>
|
|
||||||
#include <core/partition.h>
|
|
||||||
#include <core/partitionrole.h>
|
|
||||||
#include <core/partitiontable.h>
|
|
||||||
#include <fs/filesystem.h>
|
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
Loading…
Reference in New Issue
Block a user