This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Commit: opcodes/s390-mkopc.c: fix building with -Werror=format-security
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sourceware dot org
- Date: Thu, 05 Dec 2013 13:40:22 +0000
- Subject: Commit: opcodes/s390-mkopc.c: fix building with -Werror=format-security
- Authentication-results: sourceware.org; auth=none
Hi Guys,
I have checked in the small patch below to fix an error message
compiling opcodes/s390-mkopc.c with -Werror=format-security enabled.
Cheers
Nick
opcodes/ChangeLog
2013-12-05 Nick Clifton <nickc@redhat.com>
* s390-mkopc.c (dumpTable): Provide a format string to printf so
that compiling with -Werror=format-security does not produce an
error.
*** ../binutils-2.24.orig/opcodes/s390-mkopc.c 2013-12-05 13:06:00.082812690 +0000
--- opcodes/s390-mkopc.c 2013-12-05 13:13:40.206798138 +0000
*************** dumpTable (void)
*** 298,304 ****
int ix;
/* Write hash table entries (slots). */
! printf (file_header);
for (ix = 0; ix < no_ops; ix++)
{
--- 298,304 ----
int ix;
/* Write hash table entries (slots). */
! printf ("%s", file_header);
for (ix = 0; ix < no_ops; ix++)
{