forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb43bf61
committed
Tweak PQresStatus() to avoid a clang compiler warning.
The previous test for status < 0 test is in fact testing nothing if thecompiler considers an enum to be an unsigned data type. clang doesn'tlike tautologies, so do this instead.Report by Peter Geoghegan, fix as suggested by Tom Lane.1 parent4262e61 commitb43bf61
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2386 | 2386 |
| |
2387 | 2387 |
| |
2388 | 2388 |
| |
2389 |
| - | |
| 2389 | + | |
2390 | 2390 |
| |
2391 | 2391 |
| |
2392 | 2392 |
| |
|
0 commit comments
Comments
(0)