Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-04-24 21:33:30 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-04-24 21:33:30 +0400
commit21470a3ca9458b76a97d52bd1150c5012ac5a890 (patch)
tree1eb2711002b7e30987f1917b810efbd08d25fe3b /winsup/doc/faq-programming.xml
parent895ece012481194592198bf18a1b70790e784685 (diff)
* faq-programming.xml (faq.programming.64bitporting): Mention the
-Wformat and -Wall gcc options.
Diffstat (limited to 'winsup/doc/faq-programming.xml')
-rw-r--r--winsup/doc/faq-programming.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/doc/faq-programming.xml b/winsup/doc/faq-programming.xml
index c46e05f18..8a1bb962b 100644
--- a/winsup/doc/faq-programming.xml
+++ b/winsup/doc/faq-programming.xml
@@ -115,7 +115,11 @@ datatypes when the AMD64 CPU was new.</para>
printf ("%d %ld\n", l, i);
</screen>
-may not print what you think it should.
+may not print what you think it should. Enable the gcc options -Wformat or
+-Wall, which warn about type mismatches in printf/scanf functions.
+
+<note>Using -Wall (optionally with -Werror to drive the point home) makes a
+lot of sense in general, not only when porting code to a new platform.</note>
</para></listitem>
<listitem><para>