Robert Haas <robertmh...@gmail.com> wrote: > Unfortunately, whether Tom's right or not, we still don't have a > solution to the compiler warning. Would it be too weird to do something like this for each?: diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index f0b3b1f..bea5489 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -1747,6 +1747,7 @@ write_eventlog(int level, const char *line, int len) static void write_console(const char *line, int len) { + ssize_t rc; #ifdef WIN32 /* @@ -1794,7 +1795,12 @@ write_console(const char *line, int len) */ #endif - write(fileno(stderr), line, len); + rc = write(fileno(stderr), line, len); + if (rc >= 0 && rc != len) + { + Assert(false); + return; + } } /* -Kevin
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers