aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/json
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-01-30 02:11:35 +0100
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-01-30 02:11:35 +0100
commit213ed9185098c543996f2362ea4ee810930f6f5d (patch)
treeec393db8608bde3be050c31252d0e7a230567557 /test/core/json
parentc630682ad8c2cf597d1786ec637587678f3c7d6e (diff)
Re-enabling errors on warning, disabling unused parameter warning, and fixing all subsequent errors.
Diffstat (limited to 'test/core/json')
-rw-r--r--test/core/json/json_rewrite.c2
-rw-r--r--test/core/json/json_rewrite_test.c4
-rw-r--r--test/core/json/json_test.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/test/core/json/json_rewrite.c b/test/core/json/json_rewrite.c
index edece98d57..a761a670f0 100644
--- a/test/core/json/json_rewrite.c
+++ b/test/core/json/json_rewrite.c
@@ -131,7 +131,7 @@ static void json_reader_string_add_utf32(void* userdata, gpr_uint32 c) {
}
static gpr_uint32 json_reader_read_char(void* userdata) {
- gpr_uint32 r;
+ int r;
json_reader_userdata* state = userdata;
r = fgetc(state->in);
diff --git a/test/core/json/json_rewrite_test.c b/test/core/json/json_rewrite_test.c
index e47a418761..4ce406c990 100644
--- a/test/core/json/json_rewrite_test.c
+++ b/test/core/json/json_rewrite_test.c
@@ -138,7 +138,7 @@ static void json_reader_string_add_utf32(void* userdata, gpr_uint32 c) {
}
static gpr_uint32 json_reader_read_char(void* userdata) {
- gpr_uint32 r;
+ int r;
json_reader_userdata* state = userdata;
if (!state->did_eagain) {
@@ -298,7 +298,7 @@ static test_file test_files[] = {
};
void test_rewrites() {
- int i;
+ unsigned i;
for (i = 0; i < GPR_ARRAY_SIZE(test_files); i++) {
test_file* test = test_files + i;
diff --git a/test/core/json/json_test.c b/test/core/json/json_test.c
index c234eb9ede..11659a5716 100644
--- a/test/core/json/json_test.c
+++ b/test/core/json/json_test.c
@@ -124,7 +124,7 @@ static testing_pair testing_pairs[] = {
};
static void test_pairs() {
- int i;
+ unsigned i;
for (i = 0; i < GPR_ARRAY_SIZE(testing_pairs); i++) {
testing_pair* pair = testing_pairs + i;