disable warning of mismatch struct and class