Commit 55684669 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

compile using gcc 4.3 (fedora 9) addresses #1195

git-svn-id: file:///svn/toku/tokudb.1195@7639 c7de825b-a66e-492c-adef-691d508d4ae1
parent ed85b2e9
...@@ -1784,7 +1784,7 @@ brt_nonleaf_put_cmd (BRT t, BRTNODE node, BRT_CMD cmd, TOKULOGGER logger, ...@@ -1784,7 +1784,7 @@ brt_nonleaf_put_cmd (BRT t, BRTNODE node, BRT_CMD cmd, TOKULOGGER logger,
static LEAFENTRY static LEAFENTRY
fetch_from_buf (OMT omt, u_int32_t idx) { fetch_from_buf (OMT omt, u_int32_t idx) {
OMTVALUE v; OMTVALUE v = 0;
int r = toku_omt_fetch(omt, idx, &v, NULL); int r = toku_omt_fetch(omt, idx, &v, NULL);
assert(r==0); assert(r==0);
return (LEAFENTRY)v; return (LEAFENTRY)v;
...@@ -4103,7 +4103,7 @@ toku_dump_brtnode (FILE *file, BRT brt, BLOCKNUM blocknum, int depth, bytevec lo ...@@ -4103,7 +4103,7 @@ toku_dump_brtnode (FILE *file, BRT brt, BLOCKNUM blocknum, int depth, bytevec lo
int size = toku_omt_size(node->u.l.buffer); int size = toku_omt_size(node->u.l.buffer);
int i; int i;
for (i=0; i<size; i++) { for (i=0; i<size; i++) {
OMTVALUE v; OMTVALUE v = 0;
r = toku_omt_fetch(node->u.l.buffer, i, &v, 0); r = toku_omt_fetch(node->u.l.buffer, i, &v, 0);
assert(r==0); assert(r==0);
fprintf(file, " [%d]=", i); fprintf(file, " [%d]=", i);
......
...@@ -29,7 +29,7 @@ void x1764_init(struct x1764 *l) { ...@@ -29,7 +29,7 @@ void x1764_init(struct x1764 *l) {
l->input=0; l->input=0;
l->n_input_bytes=0; l->n_input_bytes=0;
} }
inline void x1764_add (struct x1764 *l, const void *vbuf, int len) { void x1764_add (struct x1764 *l, const void *vbuf, int len) {
if (PRINT) printf("%d: n_input_bytes=%d len=%d\n", __LINE__, l->n_input_bytes, len); if (PRINT) printf("%d: n_input_bytes=%d len=%d\n", __LINE__, l->n_input_bytes, len);
int n_input_bytes = l->n_input_bytes; int n_input_bytes = l->n_input_bytes;
const unsigned char *cbuf = vbuf; const unsigned char *cbuf = vbuf;
......
...@@ -21,7 +21,7 @@ struct x1764 { ...@@ -21,7 +21,7 @@ struct x1764 {
void x1764_init(struct x1764 *l); void x1764_init(struct x1764 *l);
// Effect: Initialize *l. // Effect: Initialize *l.
inline void x1764_add (struct x1764 *l, const void *vbuf, int len); void x1764_add (struct x1764 *l, const void *vbuf, int len);
// Effect: Add more bytes to *l. // Effect: Add more bytes to *l.
u_int32_t x1764_finish (struct x1764 *l); u_int32_t x1764_finish (struct x1764 *l);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment