It warns that "x" is unreferenced formal parameter in virtual void failed(Model *x) { x->~Model(); } Change-Id: I10a4e1f037726f0225c2c6bf4ee23d5fb2accf7d