diff --git a/Source/Async/WorkItem.cpp b/Source/Async/WorkItem.cpp index 42075e95..c4d559e2 100644 --- a/Source/Async/WorkItem.cpp +++ b/Source/Async/WorkItem.cpp @@ -11,6 +11,12 @@ #include "AsyncApp.hpp" #include "Schedular.hpp" +#if defined(AURORA_COMPILER_CLANG) + // warning: enumeration values 'kEnumCount' not handled in switch [-Wswitch + #pragma clang diagnostic ignored "-Wswitch" + // Yea, I don't give a shit. +#endif + namespace Aurora::Async { FuncWorker::FuncWorker(IThreadPoolInternal *owner, diff --git a/Source/Process/AuProcess.cpp b/Source/Process/AuProcess.cpp index 389574c9..22880dfb 100644 --- a/Source/Process/AuProcess.cpp +++ b/Source/Process/AuProcess.cpp @@ -31,6 +31,12 @@ #include "AuProcessMap.hpp" +#if defined(AURORA_COMPILER_CLANG) + // warning: enumeration values 'kEnumCount' and 'kEnumInvalid' not handled in switch [-Wswitch + #pragma clang diagnostic ignored "-Wswitch" + // Yea, I don't give a shit. +#endif + namespace Aurora::Process { static AuThreadPrimitives::SpinLock gSpinLock; diff --git a/Source/Processes/AuProcess.Unix.cpp b/Source/Processes/AuProcess.Unix.cpp index ba211161..1999ac68 100644 --- a/Source/Processes/AuProcess.Unix.cpp +++ b/Source/Processes/AuProcess.Unix.cpp @@ -18,6 +18,12 @@ #include +#if defined(AURORA_COMPILER_CLANG) + // warning: enumeration values 'kEnumCount' and 'kEnumInvalid' not handled in switch [-Wswitch + #pragma clang diagnostic ignored "-Wswitch" + // Yea, I don't give a shit. +#endif + #if defined(AURORA_IS_LINUX_DERIVED) #include #include