cpp: bioformats: Correct placement of warning pragmas in PixelProperties

Testing: Check if build remains green.