aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2015-01-12 16:32:53 -0500
committerSandra Loosemore <sandra@gcc.gnu.org>2015-01-12 16:32:53 -0500
commit3ae79bfd2627bbce13fe20c0fd53c0e48273c173 (patch)
tree481422303b585c945cf690e1b7a0180a91a6c0a1 /gcc
parent737fde1df22f8b0bfdc5b39dfc7d5fa280577318 (diff)
downloadgcc-3ae79bfd2627bbce13fe20c0fd53c0e48273c173.zip
gcc-3ae79bfd2627bbce13fe20c0fd53c0e48273c173.tar.gz
gcc-3ae79bfd2627bbce13fe20c0fd53c0e48273c173.tar.bz2
invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing example.
2015-01-12 Sandra Loosemore <sandra@codesourcery.com> gcc/ * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing example. From-SVN: r219494
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/invoke.texi5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e3ff175..ec94051 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
+
+ * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
+ example.
+
2015-01-12 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/64563
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 0182952..03be158 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -4625,8 +4625,9 @@ example, warn if an unsigned variable is compared against zero with
@item -Wbad-function-cast @r{(C and Objective-C only)}
@opindex Wbad-function-cast
@opindex Wno-bad-function-cast
-Warn whenever a function call is cast to a non-matching type.
-For example, warn if @code{int malloc()} is cast to @code{anything *}.
+Warn when a function call is cast to a non-matching type.
+For example, warn if a call to a function returning an integer type
+is cast to a pointer type.
@item -Wc90-c99-compat @r{(C and Objective-C only)}
@opindex Wc90-c99-compat