Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<blockquote> <p>I'm particularly interested in any additional warnings,</p> </blockquote> <p>In addition to <code>-Wall</code>, the <code>-W</code> or <code>-Wextra</code> option (<code>-W</code> works with older versions of gcc as well as newer ones; more recent versions support the alternative name <code>-Wextra</code>, which means the same thing, but is more descriptive) enables various additional warnings.</p> <p>There are also even more warnings which are not enabled by either of those, generally for things that are more questionably bad. The set of available options is dependent on which gcc version you are using - consult <code>man gcc</code> or <code>info gcc</code> for details, or see the <a href="http://gcc.gnu.org/onlinedocs/" rel="nofollow noreferrer">online documentation</a> for the particular gcc version you're interested in. And <code>-pedantic</code> issues all warnings required by the particular standard being used (which depends on other options such as <code>-std=xxx</code> or <code>-ansi</code>) and complains about use of gcc extensions.</p> <blockquote> <p>and/or and turning warnings into errors in some cases to absolutely minimize any accidental type mismatches.</p> </blockquote> <p><code>-Werror</code> turns all warnings into errors. I don't think gcc lets you do that selectively for particular warnings, though.</p> <p>You'll probably find that you have to be selective about which warnings are enabled on a per-project basis (especially if you use <code>-Werror</code>), as header files from external libraries can trip some of them. (<code>-pedantic</code> in particular tends to be unhelpful in this respect, in my experience.)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload