Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
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
git2
Commits
ba2bc491
Commit
ba2bc491
authored
8 years ago
by
Patrick Steinhardt
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4148 from pks-t/pks/fix-haiku-builds
cmake: only enable supported compiler warning flags
parents
a454641e
a02e8a38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
CMakeLists.txt
+4
-1
No files found.
CMakeLists.txt
View file @
ba2bc491
...
@@ -464,7 +464,10 @@ IF (MSVC)
...
@@ -464,7 +464,10 @@ IF (MSVC)
# Precompiled headers
# Precompiled headers
ELSE
()
ELSE
()
SET
(
CMAKE_C_FLAGS
"-D_GNU_SOURCE -Wall -Wextra
${
CMAKE_C_FLAGS
}
"
)
SET
(
CMAKE_C_FLAGS
"-D_GNU_SOURCE
${
CMAKE_C_FLAGS
}
"
)
ADD_C_FLAG_IF_SUPPORTED
(
-Wall
)
ADD_C_FLAG_IF_SUPPORTED
(
-Wextra
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"(Solaris|SunOS)"
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"(Solaris|SunOS)"
)
SET
(
CMAKE_C_FLAGS
"-std=c99 -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS
${
CMAKE_C_FLAGS
}
"
)
SET
(
CMAKE_C_FLAGS
"-std=c99 -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS
${
CMAKE_C_FLAGS
}
"
)
...
...
This diff is collapsed.
Click to expand it.
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