trac_8693 const cast warn