Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build error #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix build error #67

wants to merge 1 commit into from

Conversation

yetist
Copy link

@yetist yetist commented Jan 15, 2025

Fix the follow build errors:

cos_c_sdk/cos_multipart.c:892:10: 错误:implicit declaration of function ‘object_key_simplify_check’; did you mean ‘set_object_key
_simplify_check’? [-Wimplicit-function-declaration]
  892 |     if (!object_key_simplify_check(object->data)){
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
      |          set_object_key_simplify_check
cos_c_sdk_test/cos_demo.c:1092:62: 错误:传递‘cos_download_part_to_file’的第 4 个参数时在不兼容的指针类型间转换 [-Wincompatible-pointer-types]
 1092 |     s = cos_download_part_to_file(options, &bucket, &object, &filepath, &resp_headers);
      |                                                              ^~~~~~~~~
      |                                                              |
      |                                                              cos_string_t *

Fix the follow build errors:

```
cos_c_sdk/cos_multipart.c:892:10: 错误:implicit declaration of function ‘object_key_simplify_check’; did you mean ‘set_object_key
_simplify_check’? [-Wimplicit-function-declaration]
  892 |     if (!object_key_simplify_check(object->data)){
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
      |          set_object_key_simplify_check
```

```
cos_c_sdk_test/cos_demo.c:1092:62: 错误:传递‘cos_download_part_to_file’的第 4 个参数时在不兼容的指针类型间转换 [-Wincompatible-pointer-types]
 1092 |     s = cos_download_part_to_file(options, &bucket, &object, &filepath, &resp_headers);
      |                                                              ^~~~~~~~~
      |                                                              |
      |                                                              cos_string_t *
```
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.

None yet

1 participant