[COMMITTED PATCH] fix a -Wformat warning in s390-mkopc.c

Roland McGrath mcgrathr@google.com
Thu Nov 29 23:42:00 GMT 2012


Committed as obvious.

opcodes/
2012-11-29  Roland McGrath  <mcgrathr@google.com>

	* s390-mkopc.c (file_header): Add const.

--- a/opcodes/s390-mkopc.c
+++ b/opcodes/s390-mkopc.c
@@ -276,7 +276,7 @@ insertExpandedMnemonic (char *opcode, char
*mnemonic, char *format,
   fprintf (stderr, "Malformed mnemonic: %s\n", mnemonic);
 }

-static char file_header[] =
+static const char file_header[] =
   "/* The opcode table. This file was generated by s390-mkopc.\n\n"
   "   The format of the opcode table is:\n\n"
   "   NAME	     OPCODE	MASK	OPERANDS\n\n"


Thanks,
Roland



More information about the Binutils mailing list