From: Matthias Braun Date: Thu, 14 Sep 2006 08:30:07 +0000 (+0000) Subject: warning fix X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=fb7af51c8208febc6950d62d12a9c5de82014f8e;p=libfirm warning fix --- diff --git a/ir/be/ia32/ia32_new_nodes.c b/ir/be/ia32/ia32_new_nodes.c index 9d00a3d32..2a986a219 100644 --- a/ir/be/ia32/ia32_new_nodes.c +++ b/ir/be/ia32/ia32_new_nodes.c @@ -678,7 +678,7 @@ const char *get_ia32_cnst(const ir_node *node) { /** * Sets the string representation of the internal const. */ -void set_ia32_cnst(ir_node *node, char *cnst) { +void set_ia32_cnst(ir_node *node, const char *cnst) { ia32_attr_t *attr = get_ia32_attr(node); attr->cnst = new_id_from_str(cnst); } diff --git a/ir/be/ia32/ia32_new_nodes.h b/ir/be/ia32/ia32_new_nodes.h index 5852c961e..5ad22d05d 100644 --- a/ir/be/ia32/ia32_new_nodes.h +++ b/ir/be/ia32/ia32_new_nodes.h @@ -139,7 +139,7 @@ const char *get_ia32_cnst(const ir_node *node); /** * Sets the string representation of the internal const. */ -void set_ia32_cnst(ir_node *node, char *cnst); +void set_ia32_cnst(ir_node *node, const char *cnst); /** * Gets the ident representation of the internal const (tv or symconst)