FreeRDP/FreeRDP-old

dead code fragments

tenchman opened this issue · 2 comments

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.

@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.

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