Warnings enabled and fixed