diff --git a/include/sol/protected_function_result.hpp b/include/sol/protected_function_result.hpp index 4d53ce04..8fe0b68f 100644 --- a/include/sol/protected_function_result.hpp +++ b/include/sol/protected_function_result.hpp @@ -101,7 +101,9 @@ namespace sol { #if SOL_IS_ON(SOL_COMPILER_GCC) #pragma GCC diagnostic push +#if !SOL_IS_ON(SOL_COMPILER_CLANG) #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif #endif template diff --git a/include/sol/stack_check_get_qualified.hpp b/include/sol/stack_check_get_qualified.hpp index 60825033..753f911a 100644 --- a/include/sol/stack_check_get_qualified.hpp +++ b/include/sol/stack_check_get_qualified.hpp @@ -32,7 +32,9 @@ namespace sol { namespace stack { #if SOL_IS_ON(SOL_COMPILER_GCC) #pragma GCC diagnostic push +#if !SOL_IS_ON(SOL_COMPILER_CLANG) #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif #endif namespace stack_detail {