Useless check if pointer address is greater or equal 0
Address is an unsigned int value, so it's a little strange that is checked if isn't smaller than 0.
if (active_layer >= 0)
gimp_image_set_active_layer (image, active_layer);
https://gitlab.gnome.org/GNOME/gimp/-/blob/master/plug-ins/file-psd/psd-load.c#L1794-1795
Link to more Cppcheck errors/warnings(open index.html) - https://gitlab.com/qarmin/gimp/-/jobs/528025017/artifacts/download