mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-26 22:05:16 +08:00
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:
parent
737fde1df2
commit
3ae79bfd26
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user