fix warning and codelite build error