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
66d044ec
Unverified
Commit
66d044ec
authored
Nov 21, 2020
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `-Wdeclaration-after-statement` from gcc options; #5159
parent
734f6b1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
build_config/travis.rb
build_config/travis.rb
+0
-2
tasks/toolchains/gcc.rake
tasks/toolchains/gcc.rake
+1
-1
No files found.
build_config/travis.rb
View file @
66d044ec
...
...
@@ -4,7 +4,6 @@ MRuby::Build.new('full-debug') do |conf|
# include all core GEMs
conf
.
gembox
'full-core'
conf
.
cc
.
flags
+=
%w(-Werror=declaration-after-statement)
conf
.
cc
.
defines
+=
%w(MRB_GC_STRESS MRB_ENABLE_DEBUG_HOOK)
conf
.
enable_test
...
...
@@ -15,7 +14,6 @@ MRuby::Build.new do |conf|
# include all core GEMs
conf
.
gembox
'full-core'
conf
.
cc
.
flags
+=
%w(-Werror=declaration-after-statement)
conf
.
compilers
.
each
do
|
c
|
c
.
defines
+=
%w(MRB_GC_FIXED_ARENA)
end
...
...
tasks/toolchains/gcc.rake
View file @
66d044ec
...
...
@@ -2,7 +2,7 @@ MRuby::Toolchain.new(:gcc) do |conf, params|
default_command
=
params
[
:default_command
]
||
'gcc'
compiler_flags
=
%w(-g -O3 -Wall -Wundef)
c_mandatory_flags
=
%w(-std=gnu99)
cxx_invalid_flags
=
%w(-W
declaration-after-statement -W
error-implicit-function-declaration)
cxx_invalid_flags
=
%w(-Werror-implicit-function-declaration)
[
conf
.
cc
,
conf
.
objc
,
conf
.
asm
,
conf
.
cxx
].
each
do
|
compiler
|
if
compiler
==
conf
.
cxx
...
...
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