Error is defined but never used