Commits
Kir Kolyshkin authored 6511319abb6
tools/ploop-stat.c: don't ignore write() return value Certain versions of gcc (4.4.6) and glibc (2.12), combined with certain values in CFLAGS ("-O2 -Wall -Werror -D_FORTIFY_SOURCE=2", which comes from RPM_OPT_FLAGS supplied by rpmbuild) result in certain compilation errors, like these: cc1: warnings being treated as errors ploop-stat.c: In function 'main': ploop-stat.c:117: error: ignoring return value of 'write', declared with attribute warn_unused_result ploop-stat.c:138: error: ignoring return value of 'write', declared with attribute warn_unused_result Despite the fact we have explicitly marked that we want to ignore write() return value by adding (void), it still errors out. So add those checks. Signed-off-by: Kir Kolyshkin <kir@openvz.org>