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

compile warnings in gcc related to ignored return values #25

Closed
mrzv opened this issue May 23, 2015 · 2 comments
Closed

compile warnings in gcc related to ignored return values #25

mrzv opened this issue May 23, 2015 · 2 comments
Assignees
Labels

Comments

@mrzv
Copy link
Member

mrzv commented May 23, 2015

Issue by Tom Peterka
Saturday Feb 21, 2015 at 17:26 GMT


gcc warns about unused return values in following lines


/homes/tpeterka/software/diy2/include/diy/io/block.hpp:57:9: warning: ignoring return value of int truncate(const char*, __off_t)

/homes/tpeterka/software/diy2/include/diy/storage.hpp:80:41: warning: ignoring return value of ssize_t read(int, void*, size_t)

/homes/tpeterka/software/diy2/include/diy/storage.hpp:45:37: warning: ignoring return value of ssize_t write(int, const void*, size_t)


@mrzv mrzv self-assigned this May 23, 2015
@mrzv mrzv added the bug label May 23, 2015
@mrzv
Copy link
Member Author

mrzv commented May 23, 2015

Comment by Dmitriy Morozov
Saturday Feb 21, 2015 at 17:30 GMT


Hm, we could get rid of this by pretending that we are using the return value. Or we could actually use it properly, and report an error if something goes wrong. I guess the second way is preferable. I'll fix this at some point (but probably not today).

@mrzv
Copy link
Member Author

mrzv commented Feb 2, 2018

Closing this in favor of #57.

@mrzv mrzv closed this as completed Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant