https://github.com/postgres/postgres
Revision 8c68e07561a3ac546637a5eecffdd9c9bbbb35d7 authored by Vadim B. Mikheev on 14 December 1996, 07:54:22 UTC, committed by Vadim B. Mikheev on 14 December 1996, 07:54:22 UTC
cc1: warnings being treated as errors
datum.c: In function `DatumGetSize':
datum.c:57: warning: unsigned value >= 0 is always 1
gmake[3]: *** [datum.o] Error 1

There was:
    if (byVal) {
        if (len >= 0 && len <= sizeof(Datum)) {

but len has type Size (unsigned int) and so now there is:
    if (byVal) {
        if (len <= sizeof(Datum)) {
            size = len;
        } else {
            elog(WARN,
                 "datumGetSize: Error: type=%ld, byVaL with len=%d",
                 (long) type, len);
        }
    } else { /*  not byValue */
1 parent 9ec39eb
History
Tip revision: 8c68e07561a3ac546637a5eecffdd9c9bbbb35d7 authored by Vadim B. Mikheev on 14 December 1996, 07:54:22 UTC
Avoiding:
Tip revision: 8c68e07
File Mode Size
contrib
doc
src
COPYRIGHT -rw-r--r-- 1.0 KB
HISTORY -rw-r--r-- 12.4 KB
INSTALL -rw-r--r-- 12.3 KB
MIGRATION_to_1.02.1 -rw-r--r-- 3.1 KB
README -rw-r--r-- 1.5 KB

README

back to top