This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Back-Cover Text and --version updates


On Sun, 02 Sep 2007 22:02:16 +0200, Daniel Jacobowitz wrote:
...
> Thanks for the review.  I've checked it in now.

gcc-4.1.2-17.x86_64
gcc -c -m64 -ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4    -I. -I.././gdb -I.././gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I.././gdb/../include/opcode -I.././gdb/../readline/.. -I../bfd -I.././gdb/../bfd -I.././gdb/../include   -DMI_OUT=1 -DTUI=1  -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts -Werror top.c
top.c: In function ‘print_gdb_version’:
top.c:1157: error: missing terminating " character
top.c:1161: error: stray ‘\’ in program
top.c:1161: error: ‘and’ undeclared (first use in this function)
top.c:1161: error: (Each undeclared identifier is reported only once
top.c:1161: error: for each function it appears in.)
top.c:1161: error: expected ‘)’ before string constant
cc1: warnings being treated as errors
top.c:1161: warning: format not a string literal and no format arguments
make[2]: *** [top.o] Error 1


I expect I do not have to ask for such commit approval.


Regards,
Jan
2007-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* top.c (print_gdb_version): Fixed an end-of-line compiler error.

--- gdb/top.c	2 Sep 2007 20:02:12 -0000	1.124
+++ gdb/top.c	2 Sep 2007 20:55:35 -0000
@@ -1157,7 +1157,7 @@ print_gdb_version (struct ui_file *strea
   fprintf_filtered (stream, "\
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n\
 This is free software: you are free to change and redistribute it.\n\
-There is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"
+There is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\n\
 and \"show warranty\" for details.\n");
 
   /* After the required info we print the configuration information. */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]