Skip to content

Conversation

@FantasqueX
Copy link

Currently, there is a warning when building wheel.

jq.c: In function ‘__pyx_f_2jq_jv_string_to_py_string’:
jq.c:12111:24: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
12111 |   __pyx_v_string_value = jv_string_value(__pyx_v_value);
      |

This is because the type of return value of jv_string_value is const char * instead of char *. This is not an API change. The function returns const char * when it becomes available.

Currently, there is a warning when building wheel.
```
jq.c: In function ‘__pyx_f_2jq_jv_string_to_py_string’:
jq.c:12111:24: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
12111 |   __pyx_v_string_value = jv_string_value(__pyx_v_value);
      |
```

This is because the type of return value of `jv_string_value` is `const
char *` instead of `char *`. This is not an API change. The function
returns `const char *` when it becomes available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant