fix waring to treat as error

Change-Id: Ib0de6c7195eeff680ff0b4386b937aef6d303bd5