fd15825d7b
- remove warnings about unused return values
53 lines
2.0 KiB
Diff
53 lines
2.0 KiB
Diff
diff -up squid-3.0.STABLE2/lib/util.c.fix_warnings squid-3.0.STABLE2/lib/util.c
|
|
--- squid-3.0.STABLE2/lib/util.c.fix_warnings 2007-12-06 03:37:15.000000000 +0100
|
|
+++ squid-3.0.STABLE2/lib/util.c 2008-04-03 13:00:40.000000000 +0200
|
|
@@ -931,8 +931,8 @@ xint64toa(int64_t num)
|
|
void
|
|
default_failure_notify(const char *message)
|
|
{
|
|
- write(2, message, strlen(message));
|
|
- write(2, "\n", 1);
|
|
+ if (write(2, message, strlen(message))) {}
|
|
+ if (write(2, "\n", 1)) {}
|
|
abort();
|
|
}
|
|
|
|
diff -up squid-3.0.STABLE2/src/tools.cc.fix_warnings squid-3.0.STABLE2/src/tools.cc
|
|
--- squid-3.0.STABLE2/src/tools.cc.fix_warnings 2008-04-03 13:05:11.000000000 +0200
|
|
+++ squid-3.0.STABLE2/src/tools.cc 2008-04-03 13:07:49.000000000 +0200
|
|
@@ -152,7 +152,7 @@ mail_warranty(void)
|
|
|
|
snprintf(command, 256, "%s %s < %s", Config.EmailProgram, Config.adminEmail, filename);
|
|
|
|
- system(command); /* XXX should avoid system(3) */
|
|
+ if (system(command)) {} /* XXX should avoid system(3) */
|
|
|
|
unlink(filename);
|
|
}
|
|
diff -up squid-3.0.STABLE2/src/comm.cc.fix_warnings squid-3.0.STABLE2/src/comm.cc
|
|
--- squid-3.0.STABLE2/src/comm.cc.fix_warnings 2008-02-27 11:45:50.000000000 +0100
|
|
+++ squid-3.0.STABLE2/src/comm.cc 2008-04-03 13:00:40.000000000 +0200
|
|
@@ -2220,7 +2220,7 @@ comm_accept(int fd, IOACB *handler, void
|
|
void CommIO::Initialise() {
|
|
/* Initialize done pipe signal */
|
|
int DonePipe[2];
|
|
- pipe(DonePipe);
|
|
+ if (pipe(DonePipe)) {}
|
|
DoneFD = DonePipe[1];
|
|
DoneReadFD = DonePipe[0];
|
|
fd_open(DoneReadFD, FD_PIPE, "async-io completetion event: main");
|
|
diff -up squid-3.0.STABLE2/src/StoreIOBuffer.h.fix_warnings squid-3.0.STABLE2/src/StoreIOBuffer.h
|
|
--- squid-3.0.STABLE2/src/StoreIOBuffer.h.fix_warnings 2007-08-13 19:20:51.000000000 +0200
|
|
+++ squid-3.0.STABLE2/src/StoreIOBuffer.h 2008-04-03 13:00:40.000000000 +0200
|
|
@@ -68,8 +68,8 @@ public:
|
|
|
|
void dump() const
|
|
{
|
|
- fwrite(data, length, 1, stderr);
|
|
- fwrite("\n", 1, 1, stderr);
|
|
+ if (fwrite(data, length, 1, stderr)) {}
|
|
+ if (fwrite("\n", 1, 1, stderr)) {}
|
|
}
|
|
|
|
struct
|