removed warnings (-Wall)

So, I decided to remove warnings. I'll test on correct files and write whether it's OK or not.