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

Compilation warnings with signed and unsigned integers #5

Open
flamingradian opened this issue Oct 15, 2024 · 0 comments
Open

Compilation warnings with signed and unsigned integers #5

flamingradian opened this issue Oct 15, 2024 · 0 comments

Comments

@flamingradian
Copy link
Collaborator

Originally reported on Gitlab:

While compiling 0.3.1 to test fastrpc on xiaomi-beryllium (sdm485-soc), I noted the follwing two warning messages:

[10/24] Compiling C object hexagonrpcd/hexagonrpcd.p/hexagonfs_mapped.c.o
../hexagonrpcd/listener.c: In function 'check_inbuf_sizes':
../hexagonrpcd/listener.c:115:25: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
115 | if (inbufs[0].s != 4 * (def->in_nums
| ^~

20/24] Compiling C object tests/test_iobuffer.p/test_iobuffer.c.o
../libhexagonrpc/fastrpc.c: In function 'vfastrpc2':
../libhexagonrpc/fastrpc.c:224:25: warning: overflow in conversion from 'long unsigned int' to 'int' changes value from '3222295043' to '-1072672253' [-Woverflow]
224 | ret = ioctl(fd, FASTRPC_IOCTL_INVOKE, (__u64) &invoke);
| ^~~~~~~~~~~~~~~~~~~~

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

No branches or pull requests

1 participant