+2015-12-10 David Malcolm <dmalcolm@redhat.com>
+
+ * doc/invoke.texi (-Wall): Add -Wmisleading-indentation to the
+ list.
+ (-Wmisleading-indentation): Update documentation to reflect
+ being enabled by -Wall in C/C++.
+
2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/68691
+2015-12-10 David Malcolm <dmalcolm@redhat.com>
+
+ * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
+
2015-12-08 Jakub Jelinek <jakub@redhat.com>
PR c/48088
Warn about suspicious calls to memset where the third argument is constant literal zero and the second is not.
Wmisleading-indentation
-C C++ Common Var(warn_misleading_indentation) Warning
+C C++ Common Var(warn_misleading_indentation) Warning LangEnabledBy(C C++,Wall)
Warn when the indentation of the code does not reflect the block structure.
Wmissing-braces
-Wmain @r{(only for C/ObjC and unless} @option{-ffreestanding}@r{)} @gol
-Wmaybe-uninitialized @gol
-Wmemset-transposed-args @gol
+-Wmisleading-indentation @r{(only for C/C++)} @gol
-Wmissing-braces @r{(only for C/ObjC)} @gol
-Wnarrowing @r{(only for C++)} @gol
-Wnonnull @gol
@code{for} clauses with a guarded statement that does not use braces,
followed by an unguarded statement with the same indentation.
-This warning is disabled by default.
-
In the following example, the call to ``bar'' is misleadingly indented as
if it were guarded by the ``if'' conditional.
typically indicates autogenerated code, and no assumptions can be made
about the layout of the file that the directive references.
+This warning is enabled by @option{-Wall} in C and C++.
+
@item -Wmissing-braces
@opindex Wmissing-braces
@opindex Wno-missing-braces