From d7b84f941308e2b35997a8882873732f5ac4da9b Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sat, 13 Jan 2018 11:19:33 +0100 Subject: [PATCH] compiler warning gcc 6 issues a warning about a suspicious construct while(0); { some code } --- storage/maria/maria_def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/maria/maria_def.h b/storage/maria/maria_def.h index 393dfb6ef49..d743d4fe8c8 100644 --- a/storage/maria/maria_def.h +++ b/storage/maria/maria_def.h @@ -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,