mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Cancel the warning disablement
Suppress warnings for 0-length sequences is not required. By commitf1a02dff58, it was introduced. By commit24939723d7, pseudo-variable length arrays are now used and the warning suppression is no longer needed. By commite8841fbf58, moved the intervening code.
This commit is contained in:
@@ -34,17 +34,6 @@ typedef enum {
|
||||
MRB_GC_STATE_SWEEP
|
||||
} mrb_gc_state;
|
||||
|
||||
/* 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
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
typedef struct mrb_gc {
|
||||
struct mrb_heap_page *heaps; /* all heaps pages */
|
||||
struct mrb_heap_page *free_heaps;/* heaps for allocation */
|
||||
|
||||
Reference in New Issue
Block a user