- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit8c68e07
committed
Avoiding:
cc1: warnings being treated as errorsdatum.c: In function `DatumGetSize':datum.c:57: warning: unsigned value >= 0 is always 1gmake[3]: *** [datum.o] Error 1There 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 parent9ec39eb commit8c68e07
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
| 57 | + | |
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
|
0 commit comments
Comments
(0)