Commit 3ae79bfd by Sandra Loosemore Committed by Sandra Loosemore

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
parent 737fde1d
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment