Fixed some warnings (Weffective, Wpedantic)