[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 ignored "-Wdocumentation"
|
||||
#pragma clang diagnostic ignored "-Wsuggest-destructor-override"
|
||||
#pragma clang diagnostic ignored "-Winconsistent-missing-destructor-override"
|
||||
#endif
|
||||
|
||||
#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>
|
||||
|
||||
#ifdef __clang__
|
||||
|
@ -15,10 +15,6 @@
|
||||
#include "partition/KPMManager.h"
|
||||
#include "utils/Logger.h"
|
||||
|
||||
#include <core/lvmdevice.h>
|
||||
#include <core/partition.h>
|
||||
#include <fs/filesystemfactory.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
|
@ -10,8 +10,9 @@
|
||||
#ifndef CLEARMOUNTSJOBTESTS_H
|
||||
#define CLEARMOUNTSJOBTESTS_H
|
||||
|
||||
#include "partition/KPMHelper.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <core/device.h>
|
||||
|
||||
class CreateLayoutsTests : public QObject
|
||||
{
|
||||
|
@ -12,12 +12,7 @@
|
||||
|
||||
#include "JobQueue.h"
|
||||
|
||||
// CalaPM
|
||||
#include <core/device.h>
|
||||
#include <core/partition.h>
|
||||
#include <core/partitionrole.h>
|
||||
#include <core/partitiontable.h>
|
||||
#include <fs/filesystem.h>
|
||||
#include "partition/KPMHelper.h"
|
||||
|
||||
// Qt
|
||||
#include <QObject>
|
||||
|
Loading…
Reference in New Issue
Block a user