I found that my eclipse always mark warnings as errors, such as "unused but set" or "comparasion between signed and unsigned". They should be warings and should not stop building the project. But it's not the case in my eclipse. Their severity are all marked as error. I have checked Preference->C/C++->Build->Setting but all settings here are OK. It's really confusing. Could anyone please help me with that?