Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db_berkeley: fix compilation warning
> km_db_berkeley.c:486:58: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] > if ((ret = bdb_get_columns(_tbc->dtp, *_r, lres, _nc)) < 0) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ > km_db_berkeley.c:513:50: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] > if ((ret=bdb_append_row( *_r, dbuf, lres, i)) < 0) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ > km_db_berkeley.c:567:58: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] > if ((ret = bdb_get_columns(_tbc->dtp, *_r, lres, _nc)) < 0) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ > km_db_berkeley.c:572:47: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] > if ((ret=bdb_convert_row( *_r, dbuf, lres)) < 0) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ > 4 warnings generated. (cherry picked from commit 6e376ee)
- Loading branch information