* valprint.c (print_longest): Use fputs_filtered. Make "val"
const.
* Makefile.in (valprint.o): Delete explict rule.
2004-09-12 Andrew Cagney <cagney@gnu.org>
+ * valprint.c (print_longest): Use fputs_filtered. Make "val"
+ const.
+ * Makefile.in (valprint.o): Delete explict rule.
+
* config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
reported by Dave Anderson.
$(GDBTK_CFLAGS) \
$(srcdir)/v850ice.c
-# FIXME: cagney/2003-08-10: Do not try to build "valprint.c" with
-# -Wformat-nonliteral. It relies on local_hex_format et.al. and
-# that's a mess. It needs a serious overhaul.
-valprint.o: $(srcdir)/valprint.c
- $(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) $(srcdir)/valprint.c
-
# Message files. Based on code in gcc/Makefile.in.
print_longest (struct ui_file *stream, int format, int use_c_format,
LONGEST val_long)
{
- char *val;
+ const char *val;
+
switch (format)
{
case 'd':
default:
internal_error (__FILE__, __LINE__, "failed internal consistency check");
}
-
- fprintf_filtered (stream, val);
+ fputs_filtered (val, stream);
}
/* This used to be a macro, but I don't think it is called often enough