]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
More old compiler support.
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 11 Jul 2008 10:09:13 +0000 (22:09 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 11 Jul 2008 10:09:13 +0000 (22:09 +1200)
Several other unused function returns 'cc' complains about and gcc ignores.

src/StoreIOBuffer.h
src/comm.cc
src/tools.cc

index 513e6197360c4e485087cd83c6c602ff6ca5e119..16a4c4db4a1af8bab2a8e28d86087596c25a44e5 100644 (file)
@@ -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
index 63b2c40007dcdbcd53db2089f3eaad0c5e133d45..565f879ebddbb3a2465b24fd8b49d6ca9f181eaa 100644 (file)
@@ -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");
index 3b1df29a1a1a07f6eb191453bf619e2b524b79a6..a93618c409160a3110d8ea35fba579a1ba9699ed 100644 (file)
@@ -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);
 }