changeset 6486:d57b4ca4f74c

8033168: PPC64: gcc 4.8 warning in output_c.cpp Summary: fix warnings Reviewed-by: kvn
author goetz
date Mon, 17 Feb 2014 10:25:36 +0100
parents 3e9fd1cbb698
children efa0681495c5
files src/share/vm/adlc/output_c.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/adlc/output_c.cpp	Mon Feb 10 12:48:33 2014 +0100
+++ b/src/share/vm/adlc/output_c.cpp	Mon Feb 17 10:25:36 2014 +0100
@@ -2551,9 +2551,9 @@
 
   fprintf(fp, "  // Access to ins and operands for late expand.\n");
   const int buflen = 2000;
-  char idxbuf[buflen]; char *ib = idxbuf; sprintf(ib, "");
-  char nbuf  [buflen]; char *nb = nbuf;   sprintf(nb, "");
-  char opbuf [buflen]; char *ob = opbuf;  sprintf(ob, "");
+  char idxbuf[buflen]; char *ib = idxbuf; idxbuf[0] = '\0';
+  char nbuf  [buflen]; char *nb = nbuf;   nbuf[0]   = '\0';
+  char opbuf [buflen]; char *ob = opbuf;  opbuf[0]  = '\0';
 
   encoding->_parameter_type.reset();
   encoding->_parameter_name.reset();