From 6fea8ec1836880d1ab808d4d3c6821a7404d58e8 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 3 Jul 2020 12:57:16 +0200 Subject: Clang-Tidy: Enable redundant static qualifier warning This change enables readability-static-definition-in-anonymous-namespace warning in .clang-tidy configuration. --- source/blender/imbuf/intern/dds/DirectDrawSurface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/imbuf/intern/dds/DirectDrawSurface.cpp') diff --git a/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp b/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp index ab68d933c6f..9730153819e 100644 --- a/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp +++ b/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp @@ -501,7 +501,7 @@ struct FormatDescriptor { uint amask; }; -static const FormatDescriptor s_d3dFormats[] = { +const FormatDescriptor s_d3dFormats[] = { {D3DFMT_R8G8B8, 24, 0xFF0000, 0xFF00, 0xFF, 0}, {D3DFMT_A8R8G8B8, 32, 0xFF0000, 0xFF00, 0xFF, 0xFF000000}, /* DXGI_FORMAT_B8G8R8A8_UNORM */ {D3DFMT_X8R8G8B8, 32, 0xFF0000, 0xFF00, 0xFF, 0}, /* DXGI_FORMAT_B8G8R8X8_UNORM */ @@ -524,7 +524,7 @@ static const FormatDescriptor s_d3dFormats[] = { {D3DFMT_L16, 16, 16, 0, 0, 0}, /* DXGI_FORMAT_R16_UNORM */ }; -static const uint s_d3dFormatCount = sizeof(s_d3dFormats) / sizeof(s_d3dFormats[0]); +const uint s_d3dFormatCount = sizeof(s_d3dFormats) / sizeof(s_d3dFormats[0]); } // namespace -- cgit v1.2.3