From: Sandra Loosemore Date: Mon, 12 Jan 2015 21:32:53 +0000 (-0500) Subject: invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing example. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ae79bfd2627bbce13fe20c0fd53c0e48273c173;p=gcc.git invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing example. 2015-01-12 Sandra Loosemore gcc/ * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing example. From-SVN: r219494 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e3ff175ce8c..ec9405171aa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-12 Sandra Loosemore + + * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing + example. + 2015-01-12 Jakub Jelinek PR tree-optimization/64563 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 0182952b703..03be158467c 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