Explorar o código

Remove unchecked return warning

Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake %!s(int64=14) %!d(string=hai) anos
pai
achega
aa76b79f24
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.events = POLLIN;
 
-	poll (&pfd, 1, 1000);
+	assert(poll (&pfd, 1, 1000) == 1);
 	cpg_dispatch(handle, CS_DISPATCH_ALL);
 	return (0);
 }