fix compilation with VS2010

pull/3745/head
Jan Tattermusch 9 years ago
parent 37233e63b7
commit d73ca4817a
  1. 2
      src/core/compression/algorithm.c
  2. 1
      src/core/surface/byte_buffer.c
  3. 1
      src/core/surface/call.c

@ -101,6 +101,7 @@ grpc_compression_algorithm grpc_compression_algorithm_for_level(
default: default:
/* we shouldn't be making it here */ /* we shouldn't be making it here */
abort(); abort();
return GRPC_COMPRESS_NONE;
} }
} }
@ -116,6 +117,7 @@ grpc_compression_level grpc_compression_level_for_algorithm(
} }
} }
abort(); abort();
return GRPC_COMPRESS_LEVEL_NONE;
} }
void grpc_compression_options_init(grpc_compression_options *opts) { void grpc_compression_options_init(grpc_compression_options *opts) {

@ -97,4 +97,5 @@ size_t grpc_byte_buffer_length(grpc_byte_buffer *bb) {
} }
gpr_log(GPR_ERROR, "should never reach here"); gpr_log(GPR_ERROR, "should never reach here");
abort(); abort();
return 0;
} }

@ -436,6 +436,7 @@ static grpc_cq_completion *allocate_completion(grpc_call *call) {
} }
gpr_log(GPR_ERROR, "should never reach here"); gpr_log(GPR_ERROR, "should never reach here");
abort(); abort();
return NULL;
} }
static void done_completion(grpc_exec_ctx *exec_ctx, void *call, static void done_completion(grpc_exec_ctx *exec_ctx, void *call,

Loading…
Cancel
Save