Home > Articles

C++ Coding Standards: Compile Cleanly at High Warning Levels

When compiling, your code should be warning-free. Otherwise, you'll get into the habit of skimming over warnings, and wind up missing critical errors. This chapter will help you to create warning-free code.
This chapter is from the book

Summary

Take warnings to heart: Use your compiler's highest warning level. Require clean (warning-free) builds. Understand all warnings. Eliminate warnings by changing your code, not by reducing the warning level.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.