fix warning except for gds