]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2003-08-10 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sun, 10 Aug 2003 19:58:21 +0000 (19:58 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 10 Aug 2003 19:58:21 +0000 (19:58 +0000)
* Makefile.in (monitor.o): Do not build monitor.c with -Werror.

gdb/ChangeLog
gdb/Makefile.in

index 783c6f16f1ad6565182cb42eac8e8364972bb5bf..abb7f0d3953fb02e5593e5ec15ac4f2ad8a8e6d0 100644 (file)
@@ -1,3 +1,7 @@
+2003-08-10  Andrew Cagney  <cagney@redhat.com>
+
+       * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
+
 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
 
        * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
index 25d054e12f3e6970f1cba498138f1d3b6dcfe2f7..23896f7e941e966f882eadca1c373a0c3891f22a 100644 (file)
@@ -1321,6 +1321,15 @@ main.o: main.c
        $(CC) -c $(INTERNAL_CFLAGS) $(TARGET_SYSTEM_ROOT_DEFINE) \
                -DBINDIR=\"$(bindir)\" $(srcdir)/main.c
 
+# FIXME: cagney/2003-08-10: "monitor.c" gets -Wformat-nonliteral
+# errors.  It turns out that that is the least of monitor.c's
+# problems.  The function print_vsprintf appears to be using
+# va_arg(long) to extract CORE_ADDR parameters - something that
+# definitly will not work.  "monitor.c" needs to be rewritten so that
+# it doesn't use format strings and instead uses callbacks.
+monitor.o: $(srcdir)/monitor.c
+       $(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) $(srcdir)/monitor.c
+
 # FIXME: Procfs.o gets -Wformat errors because things like pid_t don't
 # match output format strings.
 procfs.o: $(srcdir)/procfs.c