Commit aac6afbb authored by Dave Cheney's avatar Dave Cheney Committed by Ian Lance Taylor

gopack: remove warning from the use of mktemp

gcc-4.6 considers mktemp to be racey

R=golang-dev, rsc, iant
CC=golang-dev
https://golang.org/cl/4602050
parent 63639dd2
......@@ -1536,8 +1536,7 @@ page(Arfile *ap)
bp = ap->head;
if (!ap->paged) { /* not yet paged - create file */
ap->fname = mktemp(ap->fname);
ap->fd = create(ap->fname, ORDWR|ORCLOSE, 0600);
ap->fd = mkstemp(ap->fname);
if (ap->fd < 0) {
fprint(2,"gopack: can't create temp file\n");
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment