From: Richard Kenner Date: Fri, 24 Jun 1994 20:18:25 +0000 (-0400) Subject: Declare warn_bad_function_cast. X-Git-Tag: misc/cutover-egcs-0~6380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95572adfa74b0a5c2687c93e30419eebc13fbf3d;p=thirdparty%2Fgcc.git Declare warn_bad_function_cast. From-SVN: r7563 --- diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 6da62e4fe0bf..230035115ee0 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;