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
73dcf287
Commit
73dcf287
authored
Jan 12, 2010
by
Ramsay Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvc: Fix some "unreferenced formal parameter" warnings
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
parent
e8a95256
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
src/cc-compat.h
+6
-0
src/fileops.h
+3
-0
tests/t0020-dirent.c
+2
-0
No files found.
src/cc-compat.h
View file @
73dcf287
...
...
@@ -40,6 +40,12 @@
# endif
#endif
#if defined(_MSC_VER)
#define GIT_UNUSED_ARG(x) ((void)(x));
/* note trailing ; */
#else
#define GIT_UNUSED_ARG(x)
#endif
/*
* Does our compiler/platform support the C99 <inttypes.h> and
* <stdint.h> header files. (C99 requires that <inttypes.h>
...
...
src/fileops.h
View file @
73dcf287
...
...
@@ -15,12 +15,15 @@
#ifdef GIT_WIN32
GIT_INLINE
(
int
)
link
(
const
char
*
GIT_UNUSED
(
old
),
const
char
*
GIT_UNUSED
(
new
))
{
GIT_UNUSED_ARG
(
old
)
GIT_UNUSED_ARG
(
new
)
errno
=
ENOSYS
;
return
-
1
;
}
GIT_INLINE
(
int
)
git__mkdir
(
const
char
*
path
,
int
GIT_UNUSED
(
mode
))
{
GIT_UNUSED_ARG
(
mode
)
return
mkdir
(
path
);
}
...
...
tests/t0020-dirent.c
View file @
73dcf287
...
...
@@ -186,6 +186,8 @@ static walk_data empty = {
static
int
dont_call_me
(
void
*
GIT_UNUSED
(
state
),
char
*
GIT_UNUSED
(
path
))
{
GIT_UNUSED_ARG
(
state
)
GIT_UNUSED_ARG
(
path
)
test_die
(
"dont_call_me: unexpected callback!"
);
}
...
...
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