Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

dead code fragments #58

Open
tenchman opened this issue Jul 13, 2011 · 2 comments
Open

dead code fragments #58

tenchman opened this issue Jul 13, 2011 · 2 comments

Comments

@tenchman
Copy link

There are a lot of dead code fragments all over the source only visible if compiled with '-Wunused-but-set-variable'. I'm not really sure whether it is only dead code or in some cases hidden bugs.

@awakecoding
Copy link
Member

@tenchman: I'm pretty sure most of them come out of capabilities.c, where some variables are populated from server capabilities and then unused. It's not much of a problem though, they're not hidden bugs. I'll see how I can work around this in 1.0.

@tenchman
Copy link
Author

__attribute__((unused)) could be useful to eliminate those warnings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants