From ad77b52abcbd0daf0d1a3ad395983cb90beeb72a Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 10 Feb 2022 16:05:11 +0100 Subject: Correction to previous Clang strict warning commit Need to only pop diagnostic if it was really pushed. Pointed out by Aras Pranckevicius, thanks! --- source/blender/io/wavefront_obj/exporter/obj_export_io.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender') diff --git a/source/blender/io/wavefront_obj/exporter/obj_export_io.hh b/source/blender/io/wavefront_obj/exporter/obj_export_io.hh index 7e5fe1ca526..1745169ff98 100644 --- a/source/blender/io/wavefront_obj/exporter/obj_export_io.hh +++ b/source/blender/io/wavefront_obj/exporter/obj_export_io.hh @@ -273,7 +273,7 @@ constexpr FormattingSyntax syntax_elem_to_formatting(const eMTLSyntaxElement key } } } -#if defined __GNUC__ +#if defined(__GNUC__) && !defined(__clang__) # pragma GCC diagnostic pop #endif -- cgit v1.2.3