From 3ae79bfd2627bbce13fe20c0fd53c0e48273c173 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Mon, 12 Jan 2015 16:32:53 -0500 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/doc/invoke.texi | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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 -- 2.30.2