Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
220c6282
Commit
220c6282
authored
Sep 25, 2017
by
Tomasz Dąbrowski
Committed by
Tomasz Dabrowski
Sep 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: src\pool.c(33): warning C4200: nonstandard extension used: zero-sized array in struct/union
parent
f0c1074b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/pool.c
src/pool.c
+11
-0
No files found.
src/pool.c
View file @
220c6282
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment