From eb42e583b133b6cfe78f390c54e7f90e97a2d248 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 5 Jul 2007 18:47:02 +0000 Subject: [PATCH] - Disable smaller_possible_range_check hints/warnings because of too much false positives. git-svn-id: trunk@7960 - --- compiler/htypechk.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/htypechk.pas b/compiler/htypechk.pas index f684b672df..f9c06f3918 100644 --- a/compiler/htypechk.pas +++ b/compiler/htypechk.pas @@ -2571,6 +2571,10 @@ implementation procedure check_ranges(const location: tfileposinfo; source: tnode; destdef: tdef); begin + {These checks create too much false positives. They might be usefull if we have + TP styled common type arithmetic semantics, but with the current semantics + there are not usefull.} + {$ifdef check_ranges_warnings} { check if the assignment may cause a range check error } { if its not explicit, and only if the values are } { ordinals, enumdef and floatdef } @@ -2590,6 +2594,7 @@ implementation MessagePos(location,type_h_smaller_possible_range_check); end; end; + {$endif} end;