From: Amos Jeffries Date: Fri, 11 Jul 2008 10:09:13 +0000 (+1200) Subject: More old compiler support. X-Git-Tag: SQUID_3_1_0_1~49^2~154 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3273d91b3f908fc0e18fae8af584417b7ea5f539;p=thirdparty%2Fsquid.git More old compiler support. Several other unused function returns 'cc' complains about and gcc ignores. --- diff --git a/src/StoreIOBuffer.h b/src/StoreIOBuffer.h index 513e619736..16a4c4db4a 100644 --- a/src/StoreIOBuffer.h +++ b/src/StoreIOBuffer.h @@ -68,8 +68,8 @@ public: void dump() const { - fwrite(data, length, 1, stderr); - fwrite("\n", 1, 1, stderr); + (void)fwrite(data, length, 1, stderr); + (void)fwrite("\n", 1, 1, stderr); } struct diff --git a/src/comm.cc b/src/comm.cc index 63b2c40007..565f879ebd 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -2287,7 +2287,7 @@ comm_accept_try(int fd, void *) { void CommIO::Initialise() { /* Initialize done pipe signal */ int DonePipe[2]; - pipe(DonePipe); + (void)pipe(DonePipe); DoneFD = DonePipe[1]; DoneReadFD = DonePipe[0]; fd_open(DoneReadFD, FD_PIPE, "async-io completetion event: main"); diff --git a/src/tools.cc b/src/tools.cc index 3b1df29a1a..a93618c409 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -151,7 +151,7 @@ mail_warranty(void) snprintf(command, 256, "%s %s < %s", Config.EmailProgram, Config.adminEmail, filename); - system(command); /* XXX should avoid system(3) */ + (void)system(command); /* XXX should avoid system(3) */ unlink(filename); }