bitPhile

Home

❯

notes

❯

tech

❯

c++

❯

Warning Configurations in Compiler

Warning Configurations in Compiler

Oct 12, 20251 min read

  • cpp

We can configure the compiler to show warning diagnostics for the programs so that we can make the program better.

Provide the following flags to the compiler to configure warnings.

<compiler> \
    - Wall
    - Weffc++
    - Wextra
    - Wconversion
    - Wsign-conversion
  • -Wconversion flag configures the compiler to issue warning for any lossy numeric conversion.

References

  1. https://www.learncpp.com/cpp-tutorial/configuring-your-compiler-warning-and-error-levels/

Graph View

Created with Quartz v4.5.1 © 2026

  • Made with ❤️ by Nitin