[libcalamares] Use Qt helper macros for compiler warnings
This commit is contained in:
parent
ed92ad65c4
commit
b6b09d0bc2
@ -14,20 +14,18 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#ifdef __clang__
|
QT_WARNING_PUSH
|
||||||
#pragma clang diagnostic push
|
QT_WARNING_DISABLE_CLANG( "-Wcovered-switch-default" )
|
||||||
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
QT_WARNING_DISABLE_CLANG( "-Wfloat-equal" )
|
||||||
#pragma clang diagnostic ignored "-Wfloat-equal"
|
QT_WARNING_DISABLE_CLANG( "-Wweak-vtables" )
|
||||||
#pragma clang diagnostic ignored "-Wweak-vtables"
|
QT_WARNING_DISABLE_CLANG( "-Wmissing-variable-declarations" )
|
||||||
#pragma clang diagnostic ignored "-Wmissing-variable-declarations"
|
QT_WARNING_DISABLE_CLANG( "-Wold-style-cast" )
|
||||||
#pragma clang diagnostic ignored "-Wold-style-cast"
|
QT_WARNING_DISABLE_CLANG( "-Wshadow-uncaptured-local" )
|
||||||
#pragma clang diagnostic ignored "-Wshadow-uncaptured-local"
|
QT_WARNING_DISABLE_CLANG( "-Wshadow-field-in-constructor" )
|
||||||
#pragma clang diagnostic ignored "-Wshadow-field-in-constructor"
|
QT_WARNING_DISABLE_CLANG( "-Wshadow-field" )
|
||||||
#pragma clang diagnostic ignored "-Wshadow-field"
|
QT_WARNING_DISABLE_CLANG( "-Wdocumentation" )
|
||||||
#pragma clang diagnostic ignored "-Wdocumentation"
|
QT_WARNING_DISABLE_CLANG( "-Wmissing-noreturn" )
|
||||||
#pragma clang diagnostic ignored "-Wmissing-noreturn"
|
QT_WARNING_DISABLE_CLANG( "-Wreserved-identifier" )
|
||||||
#pragma clang diagnostic ignored "-Wreserved-identifier"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#undef slots
|
#undef slots
|
||||||
#include <pybind11/pybind11.h>
|
#include <pybind11/pybind11.h>
|
||||||
@ -35,6 +33,8 @@
|
|||||||
#include <pybind11/embed.h>
|
#include <pybind11/embed.h>
|
||||||
#include <pybind11/eval.h>
|
#include <pybind11/eval.h>
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
namespace Calamares
|
namespace Calamares
|
||||||
{
|
{
|
||||||
namespace Python __attribute__( ( visibility( "hidden" ) ) )
|
namespace Python __attribute__( ( visibility( "hidden" ) ) )
|
||||||
@ -54,8 +54,5 @@ namespace Python __attribute__( ( visibility( "hidden" ) ) )
|
|||||||
} // namespace Python
|
} // namespace Python
|
||||||
} // namespace Calamares
|
} // namespace Calamares
|
||||||
|
|
||||||
#ifdef __clang__
|
|
||||||
#pragma clang diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user