criu/compel/test
Radostin Stoyanov 5364ca3da4 compel/test: Fix warn_unused_result
gcc -O2 -g -Wall -Werror -I ../../../compel/include/uapi -o spy spy.c ../../../compel/libcompel.a
spy.c: In function ‘check_pipe_ends’:
spy.c:107:2: error: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Werror=unused-result]
  107 |  write(wfd, "1", 2);
      |  ^~~~~~~~~~~~~~~~~~
spy.c:108:2: error: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Werror=unused-result]
  108 |  read(rfd, aux, sizeof(aux));
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
2021-09-03 10:31:00 -07:00
..
fdspy compel/test: Fix warn_unused_result 2021-09-03 10:31:00 -07:00
infect compel/test: Add main makefile 2021-09-03 10:31:00 -07:00
rsys compel/test: Fix warn_unused_result 2021-09-03 10:31:00 -07:00
Makefile compel/test: Add main makefile 2021-09-03 10:31:00 -07:00