Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
30c1a857
Commit
30c1a857
authored
Jun 07, 2016
by
Salvatore Sanfilippo
Browse files
Merge pull request #3301 from yossigo/fix_unused_warning
Remove gcc warning when redismodule.h is included by a multi-file module.
parents
550fa7e1
2fd6ca3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redismodule.h
View file @
30c1a857
...
...
@@ -182,6 +182,7 @@ void REDISMODULE_API_FUNC(RedisModule_SaveDouble)(RedisModuleIO *io, double valu
double
REDISMODULE_API_FUNC
(
RedisModule_LoadDouble
)(
RedisModuleIO
*
io
);
/* This is included inline inside each Redis module. */
static
int
RedisModule_Init
(
RedisModuleCtx
*
ctx
,
const
char
*
name
,
int
ver
,
int
apiver
)
__attribute__
((
unused
));
static
int
RedisModule_Init
(
RedisModuleCtx
*
ctx
,
const
char
*
name
,
int
ver
,
int
apiver
)
{
void
*
getapifuncptr
=
((
void
**
)
ctx
)[
0
];
RedisModule_GetApi
=
(
int
(
*
)(
const
char
*
,
void
*
))
(
unsigned
long
)
getapifuncptr
;
...
...
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