On Tue Nov 28 16:18:08 2023 +0000, Matteo Bruni wrote:
So this also avoids the warning here:
image->palette = palette; if ((palette = realloc(palette, colour_count * sizeof(*palette)))) image->palette = palette;
I'm leaving it up to the reviewers to decide if we want to be pedantic like this :grinning:
I prefer this version, frankly (and I find it clearer than the current code anyway), though I'm also struggling to see why GCC complains about the one but not the other?