Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
a08cc8b2
Commit
a08cc8b2
authored
Jun 08, 2018
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing makefile to suppress warnings with GCC 5+
parent
b729c737
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
Makefile
+6
-1
No files found.
Makefile
View file @
a08cc8b2
...
...
@@ -119,11 +119,16 @@ GCC_MINOR=$(word 2,$(subst .,$(space),$(GCC_VERSION)))
$(info
$(MSG_PREFIX)Found
GCC_VERSION
$(GCC_VERSION))
ifeq
($(findstring
$(GCC_MAJOR),0
1
2
3),)
$(info
$(MSG_PREFIX)Found
GCC_MAJOR>=4)
ifeq
($(GCC_MAJOR),4)
$(info
$(MSG_PREFIX)Found
GCC_MAJOR
==
4
)
ifeq
($(findstring
$(GCC_MINOR),0
1
2
3
4
5),)
$(info
$(MSG_PREFIX)Found
GCC_MINOR>=6)
CFLAGS
+=
-Wno-unused-but-set-variable
endif
else
$(info
$(MSG_PREFIX)Found
GCC_MAJOR>=5)
CFLAGS
+=
-Wno-unused-but-set-variable
endif
endif
endif
...
...
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