diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-19 13:15:51 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-19 13:15:51 +0000 |
commit | dd9977e9d827caaa0712c625804cade660dd5beb (patch) | |
tree | eaf63c52b5062fa22f55d651138eb5cd20b0a102 /gcc/conflict.c | |
parent | ec96e4ed1757343dff78ed5ec7b70f1389da125c (diff) | |
download | gcc-dd9977e9d827caaa0712c625804cade660dd5beb.tar.gz |
Warning fixes:
* builtins.c (c_getstr): Constify variable.
* gmon-sol2.c (_mcleanup): Comment out #endif labels.
* conflict.c (const_conflict_graph_arc): New typedef.
(arc_hash, arc_eq): Avoid needlessly casting away const-ness.
* cppmacro.c (builtin_macro): Likewise.
* dwarf2out.c (output_comp_unit): Constify variable.
* fix-header.c (v_fatal): Add ATTRIBUTE_PRINTF.
* protoize.c (IS_SAME_PATH_CHAR): Use TOUPPER, not toupper.
* ssa.c (ssa_rename_from_hash_function): Avoid needlessly casting
away const-ness.
* tradcpp.c (rescan, do_line, macroexpand, macarg): Use
ISALNUM/ISDIGIT/ISPRINT, not isalnum/isdigit/isprint.
* varasm.c (const_str_htab_hash, const_str_htab_eq,
compare_constant_1, record_constant_1): Constify.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37565 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/conflict.c')
-rw-r--r-- | gcc/conflict.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/conflict.c b/gcc/conflict.c index d467ba1b87a..c233d234bb8 100644 --- a/gcc/conflict.c +++ b/gcc/conflict.c @@ -85,6 +85,7 @@ struct conflict_graph_arc_def }; typedef struct conflict_graph_arc_def *conflict_graph_arc; +typedef const struct conflict_graph_arc_def *const_conflict_graph_arc; /* A conflict graph. */ @@ -127,7 +128,7 @@ static unsigned arc_hash (arcp) const void *arcp; { - conflict_graph_arc arc = (conflict_graph_arc) arcp; + const_conflict_graph_arc arc = (const_conflict_graph_arc) arcp; return CONFLICT_HASH_FN (arc->smaller, arc->larger); } @@ -140,8 +141,8 @@ arc_eq (arcp1, arcp2) const void *arcp1; const void *arcp2; { - conflict_graph_arc arc1 = (conflict_graph_arc) arcp1; - conflict_graph_arc arc2 = (conflict_graph_arc) arcp2; + const_conflict_graph_arc arc1 = (const_conflict_graph_arc) arcp1; + const_conflict_graph_arc arc2 = (const_conflict_graph_arc) arcp2; return arc1->smaller == arc2->smaller && arc1->larger == arc2->larger; } |