On 09/08/2015 11:14 AM, Manuel López-Ibáñez wrote:
I also took the liberty of rewriting the list of new command-line options to be less repetitive.
...
a negative value.</li> - <li>A new command-line option <code>-Wshift-overflow</code> has been - added for the C and C++ compilers, which warns about left shift + <li><code>-Wshift-overflow</code> warns about left shift overflows. <code>-Wshift-overflow=2</code> also warns about left-shifting 1 into the sign bit. This warning is enabled by default.</li>
While unrelated to your change, this might be a good opportunity to also tweak the last sentence and clarify that "this warning" refers to -Wshift-overflow and not to -Wshift-overflow=2. Martin