From 95572adfa74b0a5c2687c93e30419eebc13fbf3d Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 24 Jun 1994 16:18:25 -0400 Subject: [PATCH] Declare warn_bad_function_cast. From-SVN: r7563 --- gcc/c-tree.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 6da62e4fe0b..230035115ee 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -429,6 +429,12 @@ extern int warn_nested_externs; extern int warn_cast_qual; +/* Nonzero means warn when casting a function call to a type that does + not match the return type (e.g. (float)sqrt() or (anything*)malloc() + when there is no previous declaration of sqrt or malloc. */ + +extern int warn_bad_function_cast; + /* Warn about traditional constructs whose meanings changed in ANSI C. */ extern int warn_traditional; -- 2.30.2