Re: new compiler warnings
От | Kevin Grittner |
---|---|
Тема | Re: new compiler warnings |
Дата | |
Msg-id | 4E9D97C702000025000421CD@gw.wicourts.gov обсуждение исходный текст |
Ответ на | Re: new compiler warnings (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: new compiler warnings
|
Список | pgsql-hackers |
Robert Haas <robertmhaas@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 voidwrite_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
В списке pgsql-hackers по дате отправления: