Author: Amaury Forgeot d'Arc <[email protected]>
Branch: remove-PYPY_NOT_MAIN_FILE
Changeset: r57730:6c064745905a
Date: 2012-10-02 15:35 +0200
http://bitbucket.org/pypy/pypy/changeset/6c064745905a/
Log: Silence a compiler warning.
diff --git a/pypy/translator/c/src/instrument.c
b/pypy/translator/c/src/instrument.c
--- a/pypy/translator/c/src/instrument.c
+++ b/pypy/translator/c/src/instrument.c
@@ -32,7 +32,7 @@
fd = open(fname, O_CREAT|O_TRUNC|O_RDWR, 0744);
if (sz > 0) {
lseek(fd, sz-1, SEEK_SET);
- write(fd, "", 1);
+ (void)write(fd, "", 1);
#ifndef _WIN32
buf = mmap(NULL, sz, PROT_WRITE|PROT_READ, MAP_SHARED,
fd, 0);
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit