Avoiding:

Vadim B. Mikheev <vadim4o@yahoo.com>

Commit: 4556a50cf844dc61bda81eb109dd116dcdbe0412
Author: Vadim B. Mikheev <vadim4o@yahoo.com>
Date: 1996-12-14T07:56:05Z
Releases: 7.1.1
Avoiding:
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)) {

Files

PathChange+/−
src/backend/utils/adt/datum.c modified +2 −2