diff options
author | Jason Choy <jjwchoy@gmail.com> | 2013-06-13 11:37:07 +0100 |
---|---|---|
committer | Jason Choy <jjwchoy@gmail.com> | 2013-06-13 11:37:07 +0100 |
commit | 62531bd0123ccba70a1d9f638529b07f450c4d69 (patch) | |
tree | 0c1191abda7ce70d08531129ae97687b04e5fc4d /test | |
parent | f639fbd2c329ef60ba05aabade529686871458e1 (diff) | |
download | jansson-62531bd0123ccba70a1d9f638529b07f450c4d69.zip jansson-62531bd0123ccba70a1d9f638529b07f450c4d69.tar.gz jansson-62531bd0123ccba70a1d9f638529b07f450c4d69.tar.bz2 |
Prevent unused-variable warning
Diffstat (limited to 'test')
-rw-r--r-- | test/suites/api/test_load.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/suites/api/test_load.c b/test/suites/api/test_load.c index f5836bc..da2fee6 100644 --- a/test/suites/api/test_load.c +++ b/test/suites/api/test_load.c @@ -92,8 +92,10 @@ static void decode_int_as_real() json_t *json; json_error_t error; +#if JSON_INTEGER_IS_LONG_LONG const char *imprecise; json_int_t expected; +#endif json = json_loads("42", JSON_DECODE_INT_AS_REAL | JSON_DECODE_ANY, &error); if (!json || !json_is_real(json) || json_real_value(json) != 42.0) |