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

core/sc_thread.c:256:9: error: ignoring return value of 'read' #17

Open
abrunnin-xilinx opened this issue Sep 5, 2024 · 0 comments
Open
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@abrunnin-xilinx
Copy link
Contributor

Compilation failure detected by end customer - no details on which OS or compiler were used, but the obvious fix to explicitly drop the return code should be made, and maybe check whether we do need any error handling there?
Error message:
cc -Werror -Wall -Wundef -Wstrict-prototypes -Wpointer-arith -Wnested-externs -Wno-address-of-packed-member -O2 -DNDEBUG -g -fPIC -DSC_VER='"1.7.0.unknown"' -Iinclude -c core/sc_thread.c -o core/sc_thread.o core/sc_thread.c: In function 'sc_thread_state_request': core/sc_thread.c:256:9: error: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Werror=unused-result] 256 | read(t->wakeup_eventfd, &v, 8); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [Makefile:277: core/sc_thread.o] Error 1

@abrunnin-xilinx abrunnin-xilinx added bug Something isn't working good first issue Good for newcomers labels Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant