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
51d00446
Commit
51d00446
authored
Aug 30, 2011
by
Kirill A. Shutemov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMakefile: add -Wstrict-prototypes and fix warnings
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
parent
0b2c4061
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
+1
-1
src/repository.c
+1
-1
tests/t00-core.c
+1
-1
No files found.
CMakeLists.txt
View file @
51d00446
...
...
@@ -57,7 +57,7 @@ IF (MSVC)
SET
(
CMAKE_C_FLAGS_DEBUG
"/Od /DEBUG /MTd"
)
SET
(
CMAKE_C_FLAGS_RELEASE
"/MT /O2"
)
ELSE
()
SET
(
CMAKE_C_FLAGS
"-O2 -g -Wall -Wextra -Wstrict-aliasing=2"
)
SET
(
CMAKE_C_FLAGS
"-O2 -g -Wall -Wextra -Wstrict-aliasing=2
-Wstrict-prototypes
"
)
IF
(
NOT MINGW
)
# MinGW always does PIC and complains if we tell it to
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-fPIC"
)
ENDIF
()
...
...
src/repository.c
View file @
51d00446
...
...
@@ -174,7 +174,7 @@ static int quickcheck_repository_dir(const char *repository_path)
return
GIT_SUCCESS
;
}
static
git_repository
*
repository_alloc
()
static
git_repository
*
repository_alloc
(
void
)
{
int
error
;
...
...
tests/t00-core.c
View file @
51d00446
...
...
@@ -506,7 +506,7 @@ END_TEST
static
char
*
empty_tmp_dir
=
"test_gitfo_rmdir_recurs_test"
;
static
int
setup_empty_tmp_dir
()
static
int
setup_empty_tmp_dir
(
void
)
{
char
path
[
GIT_PATH_MAX
];
...
...
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