flush imenu cache after reverts
fix compile warning