diff --git a/src/gfx/process.cpp b/src/gfx/process.cpp index 06678845..318445ec 100644 --- a/src/gfx/process.cpp +++ b/src/gfx/process.cpp @@ -431,7 +431,6 @@ static std::pair, std::vector> } // Convert the palette spec to actual palettes - bool gaveDeprecationWarning = false; for (auto [spec, pal] : zip(options.palSpec, palettes)) { bool skipFirst = false; // If the image contains any transparent pixels, color #0 of all palettes is transparent. @@ -440,14 +439,6 @@ static std::pair, std::vector> // a transparent color #0, and expecting the spec to only cover the subsequent colors. if (options.hasTransparentPixels && spec.front().has_value() && spec.front()->isOpaque()) { skipFirst = true; - if (!gaveDeprecationWarning) { - warning( - WARNING_OBSOLETE, - "Implicit transparent color #0 is deprecated; leave an explicit gap in the " - "palette specs" - ); - gaveDeprecationWarning = true; - } } for (size_t i = 0; i < options.nbColorsPerPal; ++i) { // If the spec has a gap, there's no need to copy anything. diff --git a/test/gfx/implicit-overflow.err b/test/gfx/implicit-overflow.err index 655fe6af..7db00eb7 100644 --- a/test/gfx/implicit-overflow.err +++ b/test/gfx/implicit-overflow.err @@ -1,3 +1,2 @@ -warning: Implicit transparent color #0 is deprecated; leave an explicit gap in the palette specs [-Wobsolete] error: Each palette spec can only contain up to 1 color plus the implict transparent color Conversion aborted after 1 error diff --git a/test/gfx/implicit-transparent.err b/test/gfx/implicit-transparent.err index 71870a93..e69de29b 100644 --- a/test/gfx/implicit-transparent.err +++ b/test/gfx/implicit-transparent.err @@ -1 +0,0 @@ -warning: Implicit transparent color #0 is deprecated; leave an explicit gap in the palette specs [-Wobsolete]