ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

minor patch against 3.3.1 (Re: printf)


From: Arnaud Desitter
Subject: minor patch against 3.3.1 (Re: printf)
Date: Wed, 16 May 2001 14:24:23 +0100

Hi,

The small patch against 3.3.1 below to shut up a warning emitted 
by some versions of gcc ("2.9-ia64-000216-final"). It essentially makes 
it possible to cross-check printf and its format descriptor.

Cheers,
Arnaud

--- ddd-3.3.1/ddd/exit.C        Thu Apr 26 10:55:56 2001
+++ ddd-3.3.1-1/ddd/exit.C      Mon May 14 17:17:04 2001
@@ -417,28 +417,27 @@
 static void print_fatal_msg(const char *title, const char *cause, 
                            const char *cls)
 {
-    static const char *msg =
-       "\n%s (%s).\n"
-       "\n"
-       "Oops!  You have found a bug in " DDD_NAME ".\n"
-       "\n"
-       "If you can reproduce this bug, please send a bug report\n"
-       "to <address@hidden>, giving a subject like\n"
-       "\n"
-       "    " DDD_NAME " " DDD_VERSION 
-       " (" DDD_HOST ") gets %s\n"
-       "\n"
-       "To enable us to fix the bug, you should include "
-       "the following information:\n"
-       "* What you were doing to get this message.  Report all the facts.\n"
-       "* The contents of the `~/." ddd_NAME "/log' file "
-       "as generated by this session.\n"
-       "Please read also the section \"Reporting Bugs\" "
-       "in the " DDD_NAME " manual.\n"
-       "\n"
-       "We thank you for your support.\n\n";
-
-    fprintf(stderr, msg, cls, title, cause);
+    fprintf(stderr,
+           "\n%s (%s).\n"
+           "\n"
+           "Oops!  You have found a bug in " DDD_NAME ".\n"
+           "\n"
+           "If you can reproduce this bug, please send a bug report\n"
+           "to <address@hidden>, giving a subject like\n"
+           "\n"
+           "    " DDD_NAME " " DDD_VERSION 
+           " (" DDD_HOST ") gets %s\n"
+           "\n"
+           "To enable us to fix the bug, you should include "
+           "the following information:\n"
+           "* What you were doing to get this message.  Report all the
facts.\n"
+           "* The contents of the `~/." ddd_NAME "/log' file "
+           "as generated by this session.\n"
+           "Please read also the section \"Reporting Bugs\" "
+           "in the " DDD_NAME " manual.\n"
+           "\n"
+           "We thank you for your support.\n\n"
+           , cls, title, cause);
 }
 
 // Fatal signal handler: issue error message and re-raise signal

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp



reply via email to

[Prev in Thread] Current Thread [Next in Thread]