Code passes -Wall