Commit 220c6282 authored by Tomasz Dąbrowski's avatar Tomasz Dąbrowski Committed by Tomasz Dabrowski

fix: src\pool.c(33): warning C4200: nonstandard extension used: zero-sized array in struct/union

parent f0c1074b
......@@ -25,6 +25,13 @@
#endif
/* end of configuration section */
/* Disable MSVC warning "C4200: nonstandard extension used: zero-sized array
* in struct/union" when in C++ mode */
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4200)
#endif
struct mrb_pool_page {
struct mrb_pool_page *next;
size_t offset;
......@@ -33,6 +40,10 @@ struct mrb_pool_page {
char page[];
};
#ifdef _MSC_VER
#pragma warning(pop)
#endif
struct mrb_pool {
mrb_state *mrb;
struct mrb_pool_page *pages;
......
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