compiler warning

gcc 6 issues a warning about a suspicious construct

  while(0);
  {
     some code
  }
This commit is contained in:
Sergei Golubchik 2018-01-13 11:19:33 +01:00
parent 7e3c1e02b7
commit d7b84f9413

View File

@ -1139,7 +1139,7 @@ extern ulonglong transid_get_packed(MARIA_SHARE *share, const uchar *from);
#ifdef IDENTICAL_PAGES_AFTER_RECOVERY
void page_cleanup(MARIA_SHARE *share, MARIA_PAGE *page)
#else
#define page_cleanup(A,B) while (0)
#define page_cleanup(A,B) do { } while (0)
#endif
extern MARIA_KEY *_ma_make_key(MARIA_HA *info, MARIA_KEY *int_key, uint keynr,