CurveWidget: add warning from static analysis