Fixed redundant declarations & added -Wcast-align and -Wredundant-decls.