solved -O3 warnings