Skip to content

Commit

Permalink
Merge branch 'bug984669'
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Shulgin committed Apr 23, 2012
2 parents d71d2b9 + 19fef7f commit f752e62
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
9 changes: 7 additions & 2 deletions core/replication.m
Expand Up @@ -437,13 +437,18 @@ static void spawner_signal_handler(int signal)
static void
spawner_sigchld_handler(int signo __attribute__((unused)))
{
static const char waitpid_failed[] = "spawner: waitpid() failed\n";
do {
int exit_status;
pid_t pid = waitpid(-1, &exit_status, WNOHANG);
switch (pid) {
case -1:
if (errno != ECHILD)
write(sayfd, "spawner: waitpid() failed\n", 26);
if (errno != ECHILD) {
int r = write(sayfd, waitpid_failed,
sizeof(waitpid_failed) - 1);
(void) r; /* -Wunused-result warning suppression */
}
return;
case 0: /* no more changes in children status */
return;
default:
Expand Down
3 changes: 2 additions & 1 deletion core/tarantool_lua.m
Expand Up @@ -986,7 +986,8 @@ static char format_to_opcode(char format)
if (! isdigit(*str))
return true;
char *endptr;
(void) strtod(str, &endptr);
double r = strtod(str, &endptr);
(void) r; /* -Wunused-result warning suppression */
return *endptr != '\0';
}

Expand Down
6 changes: 4 additions & 2 deletions mod/box/tree.m
Expand Up @@ -585,7 +585,8 @@
* Compare a part for two dense keys with parts in linear order.
*/
static int
linear_node_compare(struct key_def *key_def, u32 first_field,
linear_node_compare(struct key_def *key_def,
u32 first_field __attribute__((unused)),
struct box_tuple *tuple_a, u32 offset_a,
struct box_tuple *tuple_b, u32 offset_b)
{
Expand Down Expand Up @@ -701,7 +702,8 @@
static int
linear_key_node_compare(struct key_def *key_def,
const struct key_data *key_data,
u32 first_field, struct box_tuple *tuple, u32 offset)
u32 first_field __attribute__((unused)),
struct box_tuple *tuple, u32 offset)
{
int part_count = key_def->part_count;
assert(first_field + part_count <= tuple->cardinality);
Expand Down
2 changes: 1 addition & 1 deletion third_party/valgrind/valgrind.h
Expand Up @@ -4346,7 +4346,7 @@ typedef
#define VALGRIND_DO_CLIENT_REQUEST_EXPR( \
_zzq_default, _zzq_request, \
_zzq_arg1, _zzq_arg2, _zzq_arg3, _zzq_arg4, _zzq_arg5) \
(_zzq_default)
(void)(_zzq_default)

#else /*defined(NVALGRIND)*/

Expand Down

0 comments on commit f752e62

Please sign in to comment.