Browse Source

Remove unchecked return warning

Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake 14 năm trước cách đây
mục cha
commit
aa76b79f24
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      test/testcpg2.c

+ 1 - 1
test/testcpg2.c

@@ -84,7 +84,7 @@ int main(int argc, char** argv) {
 	pfd.fd = fd;
 	pfd.fd = fd;
 	pfd.events = POLLIN;
 	pfd.events = POLLIN;
 
 
-	poll (&pfd, 1, 1000);
+	assert(poll (&pfd, 1, 1000) == 1);
 	cpg_dispatch(handle, CS_DISPATCH_ALL);
 	cpg_dispatch(handle, CS_DISPATCH_ALL);
 	return (0);
 	return (0);
 }
 }