'Turning of modules in XCode hides errors

I am writing a program in c and I have noticed that when i set the setting Enable Modules (C and Objective-C) to No in XCode all errors i get while writing my code disappear.

For example if i were to randomly write a bunch a characters in the middle of my program XCode wouldn't put tell me anythings wrong until i compiled the program.

When the setting is off:

Image were there are no red squiggly lines

When the setting is on:

Image were there are red squiggly lines

This is really annoying for obvious reasons and it ONLY happens when I turn of the setting, if I turn it back on the errors appear again.

I need to have modules disabled for the program i'm writing. How can I fix this and why would turning off modules disable errors?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source