From bc5cb3e3635701f4637a2ecc2ce3e9c8ab723a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 2 Sep 2025 12:33:00 +0200 Subject: [PATCH] Test: fix Clang missing prototypes warnings harder. I thought I fixed all in 6b58165856657a85b02079432f154d238fe181c5 (which should have gone into 1c1ded586916784045fe1ec52738d622a3d521f9 already), but apparently there were four more instances I missed. Sigh. --- src/Magnum/Test/ImageTest.cpp | 4 ++++ src/Magnum/Test/ImageViewTest.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Magnum/Test/ImageTest.cpp b/src/Magnum/Test/ImageTest.cpp index a4805eead..f6728de5a 100644 --- a/src/Magnum/Test/ImageTest.cpp +++ b/src/Magnum/Test/ImageTest.cpp @@ -206,6 +206,9 @@ namespace Vk { } enum class CompressedPixelFormat { Astc5x5x4RGBAF = 111 }; + /* Clang -Wmissing-prototypes warns otherwise, even though this is in an + anonymous namespace */ + Vector3i compressedPixelFormatBlockSize(CompressedPixelFormat); Vector3i compressedPixelFormatBlockSize(CompressedPixelFormat format) { #ifdef CORRADE_NO_ASSERT static_cast(format); @@ -213,6 +216,7 @@ namespace Vk { CORRADE_INTERNAL_ASSERT(format == CompressedPixelFormat::Astc5x5x4RGBAF); return {5, 5, 4}; } + UnsignedInt compressedPixelFormatBlockDataSize(CompressedPixelFormat); UnsignedInt compressedPixelFormatBlockDataSize(CompressedPixelFormat format) { #ifdef CORRADE_NO_ASSERT static_cast(format); diff --git a/src/Magnum/Test/ImageViewTest.cpp b/src/Magnum/Test/ImageViewTest.cpp index 0e8db025b..239fbc6d9 100644 --- a/src/Magnum/Test/ImageViewTest.cpp +++ b/src/Magnum/Test/ImageViewTest.cpp @@ -198,6 +198,9 @@ namespace Vk { } enum class CompressedPixelFormat { Astc5x5x4RGBAF = 111 }; + /* Clang -Wmissing-prototypes warns otherwise, even though this is in an + anonymous namespace */ + Vector3i compressedPixelFormatBlockSize(CompressedPixelFormat); Vector3i compressedPixelFormatBlockSize(CompressedPixelFormat format) { #ifdef CORRADE_NO_ASSERT static_cast(format); @@ -205,6 +208,7 @@ namespace Vk { CORRADE_INTERNAL_ASSERT(format == CompressedPixelFormat::Astc5x5x4RGBAF); return {5, 5, 4}; } + UnsignedInt compressedPixelFormatBlockDataSize(CompressedPixelFormat); UnsignedInt compressedPixelFormatBlockDataSize(CompressedPixelFormat format) { #ifdef CORRADE_NO_ASSERT static_cast(format);