(gfx_context) Fix warnings