FreeRDP-old icon indicating copy to clipboard operation
FreeRDP-old copied to clipboard

dead code fragments

Open tenchman opened this issue 13 years ago • 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 avatar Jul 13 '11 09:07 tenchman

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

awakecoding avatar Jul 13 '11 11:07 awakecoding

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

tenchman avatar Jul 13 '11 12:07 tenchman