diff --git a/src/Magnum/Test/ImageTest.cpp b/src/Magnum/Test/ImageTest.cpp index dc2eb213e..eedb7420e 100644 --- a/src/Magnum/Test/ImageTest.cpp +++ b/src/Magnum/Test/ImageTest.cpp @@ -108,6 +108,9 @@ namespace { namespace GL { enum class PixelFormat { RGB = 666 }; enum class PixelType { UnsignedShort = 1337 }; + /* Clang -Wmissing-prototypes warns otherwise, even though this is in an + anonymous namespace */ + UnsignedInt pixelSize(PixelFormat, PixelType); UnsignedInt pixelSize(PixelFormat format, PixelType type) { CORRADE_INTERNAL_ASSERT(format == PixelFormat::RGB); CORRADE_INTERNAL_ASSERT(type == PixelType::UnsignedShort); @@ -119,6 +122,9 @@ namespace GL { namespace Vk { enum class PixelFormat { R32G32B32F = 42 }; + /* Clang -Wmissing-prototypes warns otherwise, even though this is in an + anonymous namespace */ + UnsignedInt pixelSize(PixelFormat); UnsignedInt pixelSize(PixelFormat format) { CORRADE_INTERNAL_ASSERT(format == PixelFormat::R32G32B32F); return 12; diff --git a/src/Magnum/Test/ImageViewTest.cpp b/src/Magnum/Test/ImageViewTest.cpp index 3bc0d8e61..8ff8c342c 100644 --- a/src/Magnum/Test/ImageViewTest.cpp +++ b/src/Magnum/Test/ImageViewTest.cpp @@ -88,6 +88,9 @@ namespace { namespace GL { enum class PixelFormat { RGB = 666 }; enum class PixelType { UnsignedShort = 1337 }; + /* Clang -Wmissing-prototypes warns otherwise, even though this is in an + anonymous namespace */ + UnsignedInt pixelSize(PixelFormat, PixelType); UnsignedInt pixelSize(PixelFormat format, PixelType type) { CORRADE_INTERNAL_ASSERT(format == PixelFormat::RGB); CORRADE_INTERNAL_ASSERT(type == PixelType::UnsignedShort); @@ -99,6 +102,9 @@ namespace GL { namespace Vk { enum class PixelFormat { R32G32B32F = 42 }; + /* Clang -Wmissing-prototypes warns otherwise, even though this is in an + anonymous namespace */ + UnsignedInt pixelSize(PixelFormat); UnsignedInt pixelSize(PixelFormat format) { CORRADE_INTERNAL_ASSERT(format == PixelFormat::R32G32B32F); return 12; diff --git a/src/Magnum/Trade/Test/ImageDataTest.cpp b/src/Magnum/Trade/Test/ImageDataTest.cpp index 880a13797..ae40ca863 100644 --- a/src/Magnum/Trade/Test/ImageDataTest.cpp +++ b/src/Magnum/Trade/Test/ImageDataTest.cpp @@ -94,6 +94,9 @@ namespace { namespace GL { enum class PixelFormat { RGB = 666 }; enum class PixelType { UnsignedShort = 1337 }; + /* Clang -Wmissing-prototypes warns otherwise, even though this is in an + anonymous namespace */ + UnsignedInt pixelSize(PixelFormat, PixelType); UnsignedInt pixelSize(PixelFormat format, PixelType type) { CORRADE_INTERNAL_ASSERT(format == PixelFormat::RGB); CORRADE_INTERNAL_ASSERT(type == PixelType::UnsignedShort); @@ -105,6 +108,9 @@ namespace GL { namespace Vk { enum class PixelFormat { R32G32B32F = 42 }; + /* Clang -Wmissing-prototypes warns otherwise, even though this is in an + anonymous namespace */ + UnsignedInt pixelSize(PixelFormat); UnsignedInt pixelSize(PixelFormat format) { CORRADE_INTERNAL_ASSERT(format == PixelFormat::R32G32B32F); return 12;