mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-30 23:45:27 +08:00
* c-typeck.c (build_c_cast): Remove dead code.
From-SVN: r33739
This commit is contained in:
parent
02a749ecc3
commit
6efd816040
@ -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
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user