validate unused variable on declaration