prevent unused warning in release build

i.e. where asserts are disabled

Change-Id: Ic47b0a65bf729ba2cc9460a6a4bf1bbbc06f34da