[PATCH doc] Explain options precedence and difference between -pedantic-errors and -Werror=pedantic

Joseph S. Myers joseph@codesourcery.com
Sat Oct 18 00:41:00 GMT 2014


On Sat, 18 Oct 2014, Manuel López-Ibáñez wrote:

> Can we make "possibly in some other cases" more concrete? Otherwise,

Cases where something about the code is not defined by the base standard, 
but a diagnostic is not required.  -pedantic may give a warning for such 
cases.  -pedantic-errors may give an error *if* there is compile-time 
undefined behavior (not if the not-definedness is something other than 
undefined behavior, or is undefined behavior only if the code in question 
is executed, although it will still give a warning for such cases if 
-pedantic does).

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Gcc-patches mailing list