sna: Silence a DBG compiler warning

kgem.c: In function '_kgem_submit':
kgem.c:3243:12: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
       write(fd, kgem->batch, batch_end*sizeof(uint32_t));

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-06-02 08:30:57 +01:00
parent ffbe0aa185
commit 487df2e7b1
1 changed files with 2 additions and 1 deletions

View File

@ -3190,7 +3190,8 @@ void _kgem_submit(struct kgem *kgem)
if (DEBUG_SYNC) {
int fd = open("/tmp/batchbuffer", O_WRONLY | O_CREAT | O_APPEND, 0666);
if (fd != -1) {
write(fd, kgem->batch, batch_end*sizeof(uint32_t));
int ignored = write(fd, kgem->batch, batch_end*sizeof(uint32_t));
assert(ignored == batch_end*sizeof(uint32_t));
close(fd);
}