cpp: Remove warnings in all PixelBuffer tests