projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avoid warnings in release mode
[libfirm]
/
ir
/
ir
/
irprintf.c
diff --git
a/ir/ir/irprintf.c
b/ir/ir/irprintf.c
index
3172032
..
e8c80bc
100644
(file)
--- a/
ir/ir/irprintf.c
+++ b/
ir/ir/irprintf.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-17,24
+17,13
@@
* PURPOSE.
*/
* PURPOSE.
*/
-/*
- * Project: libFIRM
- * File name: ir/ir/irprintf.c
- * Purpose: A little printf helper unterstanding firm types
- * Author: Sebastian Hack
- * Created: 29.11.2004
- * CVS-ID: $Id$
- * Copyright: (c) 1998-2006 Universität Karlsruhe
- */
-
/**
/**
- * @file
irprintf.c
- *
- *
A little printf helper unterstanding firm types.
- * @
author Sebastian Hack
- * @
date 29.11.2004
+ * @file
+ *
@brief A little printf helper unterstanding firm types
+ *
@author Sebastian Hack
+ * @
date 29.11.2004
+ * @
version $Id$
*/
*/
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@
-73,7
+62,8
@@
*/
static void str_init(void *object, size_t n)
{
*/
static void str_init(void *object, size_t n)
{
- strcpy(object, "");
+ (void) n;
+ strcpy(object, "");
}
/**
}
/**
@@
-103,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)
{
*/
static void file_init(void *object, size_t n)
{
+ (void) object;
+ (void) n;
}
/**
}
/**
@@
-110,7
+102,8
@@
static void file_init(void *object, size_t n)
*/
static void file_append_char(void *object, size_t n, char ch)
{
*/
static void file_append_char(void *object, size_t n, char ch)
{
- fputc(ch, object);
+ (void) n;
+ fputc(ch, object);
}
/**
}
/**
@@
-118,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)
{
*/
static void file_append_str(void *object, size_t n, const char *str)
{
- fputs(str, object);
+ (void) n;
+ fputs(str, object);
}
/**
}
/**
@@
-126,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)
{
*/
static void obst_init(void *object, size_t n)
{
+ (void) object;
+ (void) n;
}
/**
}
/**
@@
-133,8
+129,9
@@
static void obst_init(void *object, size_t n)
*/
static void obst_append_char(void *object, size_t n, char ch)
{
*/
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);
}
/**
}
/**
@@
-142,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)
{
*/
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));
}
}
@@
-273,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
*/
/**
* 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);
if (ent->ld_name)
return get_entity_ld_name(ent);
return get_entity_name(ent);
@@
-292,7
+290,7
@@
static void firm_emit(char *buf, int buflen, char conversion,
ir_node *block;
char add[64];
char tv_buf[256];
ir_node *block;
char add[64];
char tv_buf[256];
- entity *ent;
+
ir_
entity *ent;
buf[0] = '\0';
add[0] = '\0';
buf[0] = '\0';
add[0] = '\0';
@@
-361,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), "<ENUM:%s>", get_enumeration_name(get_SymConst_enum(X)));
break;
case symconst_enum_const: /* enumeration constant */
snprintf(tv_buf, sizeof(tv_buf), "<ENUM:%s>", get_enumeration_name(get_SymConst_enum(X)));
break;
+ case symconst_label: /* label */
+ snprintf(tv_buf, sizeof(tv_buf), "<LABEL:%lu>", get_SymConst_label(X));
+ break;
default:
tv_buf[0] = '\0';
}
default:
tv_buf[0] = '\0';
}