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

error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] #264

Closed
yurivict opened this issue Mar 4, 2024 · 5 comments
Assignees
Labels
resolution:fixed Fixed type:bug Something isn't working

Comments

@yurivict
Copy link
Contributor

yurivict commented Mar 4, 2024

Build fails:

In file included from libs/base64.c:30:
libs/tools.h:192:19: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
        return us_strdup(strerror_r(error, buf, max_len));
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/tools.h:81:36: note: passing argument to parameter 'str' here
INLINE char *us_strdup(const char *str) {
                                   ^
1 error generated.
gmake[2]: *** [Makefile:125: build/libs/base64.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from libs/frametext.c:23:
In file included from libs/frametext.h:27:
In file included from libs/frame.h:26:
libs/tools.h:192:19: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
        return us_strdup(strerror_r(error, buf, max_len));
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/tools.h:81:36: note: passing argument to parameter 'str' here
INLINE char *us_strdup(const char *str) {
                                   ^
1 error generated.
gmake[2]: *** [Makefile:125: build/libs/frametext.o] Error 1
In file included from libs/device.c:23:
In file included from libs/device.h:28:
In file included from libs/frame.h:26:
libs/tools.h:192:19: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
        return us_strdup(strerror_r(error, buf, max_len));
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/tools.h:81:36: note: passing argument to parameter 'str' here
INLINE char *us_strdup(const char *str) {
                                   ^
1 error generated.

Version: 5.58
clang-16
FreeBSD 14.0

@mdevaev
Copy link
Member

mdevaev commented Mar 5, 2024

It should be fixed. Please check the master branch.

@mdevaev mdevaev self-assigned this Mar 5, 2024
@mdevaev mdevaev added the type:bug Something isn't working label Mar 5, 2024
@mdevaev
Copy link
Member

mdevaev commented Mar 5, 2024

Updated again.

@mdevaev
Copy link
Member

mdevaev commented Mar 9, 2024

Ping?

@yurivict
Copy link
Contributor Author

It is fixed now.

Thanks for fixing.

@mdevaev
Copy link
Member

mdevaev commented Mar 11, 2024

👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution:fixed Fixed type:bug Something isn't working
Development

No branches or pull requests

2 participants