From b843d2101e5b335f9ae87d5dea12372aca5fb5da Mon Sep 17 00:00:00 2001 From: Dirk Zoller Date: Thu, 30 Sep 1999 06:19:54 +0000 Subject: c-tree.h (warn_float_equal): Declare. * c-tree.h (warn_float_equal): Declare. * c-decl.c (warn_float_equal): Define. (c_decode_option): Recognize -W[no-]float-equal. * c-typeck.c (build_binary_op): Conditionally warn about equality tests of floating point types. * toplev.c (documented_lan_options): Add -W[no-]float-equal. From-SVN: r29722 --- gcc/c-tree.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/c-tree.h') diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 44ec800..0d2dd63 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -422,6 +422,10 @@ extern int warn_missing_braces; extern int warn_sign_compare; +/* Warn about testing equality of floating point numbers. */ + +extern int warn_float_equal; + /* Warn about multicharacter constants. */ extern int warn_multichar; -- cgit v1.1