Managing Compiler Warnings
The C compiler will often report messages. These messages can be divided into error messages and warning messages. Error messages indicate things that must be corrected in order for the compile to succeed. Warnings alert the programmer to bad practices and problems that might occur later when the program is run.
With the maximum compile warning level set, the compiler reports on the smallest of infractions, but it usually does so intelligently and diligently. Sometimes warnings are issued for valid C programming practices, and some developers disable these warnings with certain compiler options. By doing this, they prevent the C compiler from providing useful advice.
The best advice that can be provided here is to always ...
Get Advanced UNIX Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.