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-Tag: releases/gcc-5.1.0~1855 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ae79bfd2627bbce13fe20c0fd53c0e48273c173;p=thirdparty%2Fgcc.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 e3ff175ce8c4..ec9405171aae 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 0182952b7030..03be158467c2 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