openziti / tlsuv

TLS and HTTP(s) client library for libuv
https://docs.openziti.io/tlsuv/
MIT License
43 stars 5 forks source link

Some function results being stored but ignored (-Wno-unused-variable warnings) #173

Closed snej closed 1 year ago

snej commented 1 year ago

Clang’s -Wno-unused-variable warning points out some places where the code isn’t checking function results. The following lines are putting results in variables but not doing anything with them:

It’s not obvious what should be done with these. In the first case is the call even necessary? In the second case it does look like the result of the write should be checked for errors, but I don’t know how.

snej commented 1 year ago

Two other unused variables that could simply be deleted: