* c-typeck.c (build_c_cast): Remove dead code.

From-SVN: r33739
This commit is contained in:
Richard Henderson 2000-05-06 14:54:51 -07:00 committed by Richard Henderson
parent 02a749ecc3
commit 6efd816040
2 changed files with 4 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2000-05-06 Richard Henderson <rth@cygnus.com>
* c-typeck.c (build_c_cast): Remove dead code.
2000-05-06 Richard Henderson <rth@cygnus.com>
* flow.c (split_edge): Don't allocate global_live_at_start for

View File

@ -3702,11 +3702,6 @@ build_c_cast (type, expr)
if (TREE_CODE (type) == POINTER_TYPE
&& TREE_CODE (otype) == INTEGER_TYPE
&& TYPE_PRECISION (type) != TYPE_PRECISION (otype)
#if 0
/* Don't warn about converting 0 to pointer,
provided the 0 was explicit--not cast or made by folding. */
&& !(TREE_CODE (value) == INTEGER_CST && integer_zerop (value))
#endif
/* Don't warn about converting any constant. */
&& !TREE_CONSTANT (value))
warning ("cast to pointer from integer of different size");