X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firprintf.c;h=e8c80bc668d945521730d257120bfc98d3485987;hb=8f355cb9b3d20c10f71d1b1e17cbf59a51ced83b;hp=4eb1d0b8205ba65f3abd357bb5c0f2ee9dc7e6f8;hpb=a142727aca4ef56cf754045fc0129b6d1b840a63;p=libfirm diff --git a/ir/ir/irprintf.c b/ir/ir/irprintf.c index 4eb1d0b82..e8c80bc66 100644 --- a/ir/ir/irprintf.c +++ b/ir/ir/irprintf.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -62,7 +62,8 @@ */ static void str_init(void *object, size_t n) { - strcpy(object, ""); + (void) n; + strcpy(object, ""); } /** @@ -92,6 +93,8 @@ static void str_append_str(void *object, size_t n, const char *str) */ static void file_init(void *object, size_t n) { + (void) object; + (void) n; } /** @@ -99,7 +102,8 @@ static void file_init(void *object, size_t n) */ static void file_append_char(void *object, size_t n, char ch) { - fputc(ch, object); + (void) n; + fputc(ch, object); } /** @@ -107,7 +111,8 @@ static void file_append_char(void *object, size_t n, char ch) */ static void file_append_str(void *object, size_t n, const char *str) { - fputs(str, object); + (void) n; + fputs(str, object); } /** @@ -115,6 +120,8 @@ static void file_append_str(void *object, size_t n, const char *str) */ static void obst_init(void *object, size_t n) { + (void) object; + (void) n; } /** @@ -122,8 +129,9 @@ static void obst_init(void *object, size_t n) */ static void obst_append_char(void *object, size_t n, char ch) { - struct obstack *obst = object; - obstack_1grow(obst, ch); + struct obstack *obst = object; + (void) n; + obstack_1grow(obst, ch); } /** @@ -131,8 +139,9 @@ static void obst_append_char(void *object, size_t n, char ch) */ static void obst_append_str(void *object, size_t n, const char *str) { - struct obstack *obst = object; - obstack_grow(obst, str, strlen(str)); + struct obstack *obst = object; + (void) n; + obstack_grow(obst, str, strlen(str)); } @@ -262,7 +271,7 @@ static void dump_with_settings(const appender_t *app, void *object, size_t limit /** * Beware: do not set the entity ld_name */ -static const char *get_entity_ld_name_ex(entity *ent) { +static const char *get_entity_ld_name_ex(ir_entity *ent) { if (ent->ld_name) return get_entity_ld_name(ent); return get_entity_name(ent); @@ -281,7 +290,7 @@ static void firm_emit(char *buf, int buflen, char conversion, ir_node *block; char add[64]; char tv_buf[256]; - entity *ent; + ir_entity *ent; buf[0] = '\0'; add[0] = '\0'; @@ -350,6 +359,9 @@ static void firm_emit(char *buf, int buflen, char conversion, case symconst_enum_const: /* enumeration constant */ snprintf(tv_buf, sizeof(tv_buf), "", get_enumeration_name(get_SymConst_enum(X))); break; + case symconst_label: /* label */ + snprintf(tv_buf, sizeof(tv_buf), "", get_SymConst_label(X)); + break; default: tv_buf[0] = '\0'; }