This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

Commit: opcodes/s390-mkopc.c: fix building with -Werror=format-security


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++)
      {


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