Skip to content

Commit

Permalink
AVRO-3957: [C] Fix type in quickstop example
Browse files Browse the repository at this point in the history
This removes the following warning:

  avro/lang/c/examples/quickstop.c:123:40: warning: incompatible pointer types passing 'int32_t **' (aka 'int **') to parameter of type
        'const char **' [-Wincompatible-pointer-types]
                          avro_value_get_string(&first_value, &p, &size);

Signed-off-by: Sahil Kang <[email protected]>
Signed-off-by: Sahil Kang <[email protected]>
  • Loading branch information
SahilKang committed Mar 10, 2024
1 parent a57d70d commit 81f48c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/c/examples/quickstop.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ int print_person(avro_file_reader_t db, avro_schema_t reader_schema)
if (rval == 0) {
int64_t id;
int32_t age;
int32_t *p;
const char *p;
size_t size;
avro_value_t id_value;
avro_value_t first_value;
Expand Down

0 comments on commit 81f48c2

Please sign in to comment.