Commit ad29d552 authored by unknown's avatar unknown

Maria - fix for "statement with no effect" warning


mysys/lf_hash.c:
  fix for "statement with no effect" warning
storage/maria/lockman.c:
  fix for "statement with no effect" warning
parent 5750daa4
...@@ -96,7 +96,7 @@ static int lfind(LF_SLIST * volatile *head, CHARSET_INFO *cs, uint32 hashnr, ...@@ -96,7 +96,7 @@ static int lfind(LF_SLIST * volatile *head, CHARSET_INFO *cs, uint32 hashnr,
cur_keylen= cursor->curr->keylen; cur_keylen= cursor->curr->keylen;
if (*cursor->prev != (intptr)cursor->curr) if (*cursor->prev != (intptr)cursor->curr)
{ {
LF_BACKOFF; (void)LF_BACKOFF;
goto retry; goto retry;
} }
if (!DELETED(link)) if (!DELETED(link))
...@@ -118,7 +118,7 @@ static int lfind(LF_SLIST * volatile *head, CHARSET_INFO *cs, uint32 hashnr, ...@@ -118,7 +118,7 @@ static int lfind(LF_SLIST * volatile *head, CHARSET_INFO *cs, uint32 hashnr,
_lf_alloc_free(pins, cursor->curr); _lf_alloc_free(pins, cursor->curr);
else else
{ {
LF_BACKOFF; (void)LF_BACKOFF;
goto retry; goto retry;
} }
} }
......
...@@ -287,7 +287,7 @@ static int lockfind(LOCK * volatile *head, LOCK *node, ...@@ -287,7 +287,7 @@ static int lockfind(LOCK * volatile *head, LOCK *node,
cur_flags= cursor->curr->flags; cur_flags= cursor->curr->flags;
if (*cursor->prev != (intptr)cursor->curr) if (*cursor->prev != (intptr)cursor->curr)
{ {
LF_BACKOFF; (void)LF_BACKOFF;
goto retry; goto retry;
} }
if (!DELETED(link)) if (!DELETED(link))
...@@ -364,7 +364,7 @@ static int lockfind(LOCK * volatile *head, LOCK *node, ...@@ -364,7 +364,7 @@ static int lockfind(LOCK * volatile *head, LOCK *node,
_lf_alloc_free(pins, cursor->curr); _lf_alloc_free(pins, cursor->curr);
else else
{ {
LF_BACKOFF; (void)LF_BACKOFF;
goto retry; goto retry;
} }
} }
......
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