From 94f77bd25663134d0490d7519fe5c9065e243299 Mon Sep 17 00:00:00 2001 From: Bruno Lopes Date: Sun, 29 Mar 2026 19:22:25 -0300 Subject: [PATCH] plug-ins: Silence 'register' storage class specifier warning on Clang too --- plug-ins/file-exr/openexr-wrapper.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plug-ins/file-exr/openexr-wrapper.cc b/plug-ins/file-exr/openexr-wrapper.cc index b9ce993a4b..65e4b80919 100644 --- a/plug-ins/file-exr/openexr-wrapper.cc +++ b/plug-ins/file-exr/openexr-wrapper.cc @@ -19,8 +19,6 @@ #include -#include - /* These libgimp includes are not needed here at all, but this is a * convenient place to make sure the public libgimp headers are * C++-clean. The C++ compiler will choke on stuff like naming @@ -51,13 +49,20 @@ /* ignore deprecated warnings from OpenEXR headers */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated" +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-register" + +#include + #include #include #include #include #include #include + #pragma GCC diagnostic pop +#pragma clang diagnostic pop #include "exr-attribute-blob.h" #include "openexr-wrapper.h"