]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Suggest compiling with --Wall.
authorNicholas Nethercote <njn@valgrind.org>
Thu, 18 Oct 2007 23:14:48 +0000 (23:14 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Thu, 18 Oct 2007 23:14:48 +0000 (23:14 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7025

docs/xml/manual-core.xml

index 6ff0c9bdb96a2d712ba3d993e12b9ad40595ddfb..2e061ae2aea4efcefe8b8cf7780b65ce8b23316a 100644 (file)
@@ -116,8 +116,12 @@ tool.  So the best solution is to turn off optimisation altogether.  Since
 this often makes things unmanagably slow, a reasonable compromise is to use
 <computeroutput>-O</computeroutput>.  This gets you the majority of the
 benefits of higher optimisation levels whilst keeping relatively small the
-chances of false positives or false negatives from Memcheck.  All other
-tools (as far as we know) are unaffected by optimisation level.</para>
+chances of false positives or false negatives from Memcheck.  Also, you
+should compile your code with <computeroutput>-Wall</computeroutput> because
+it can identify some or all of the problems that Valgrind can miss at the
+higher optimisations levels.  (Using <computeroutput>-Wall</computeroutput>
+is also a good idea in general.)  All other tools (as far as we know) are
+unaffected by optimisation level.</para>
 
 <para>Valgrind understands both the older "stabs" debugging format, used
 by gcc versions prior to 3.1, and the newer DWARF2 and DWARF3 formats