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
This commit is contained in:
Sandra Loosemore 2015-01-12 16:32:53 -05:00 committed by Sandra Loosemore
parent 737fde1df2
commit 3ae79bfd26
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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