Remove old lock/release cases from control.c + hopefully silence warnings on 64 bit...
authorJeremy Tan <[email protected]>
Sat, 12 Oct 2013 14:13:33 +0000 (22:13 +0800)
committerJeremy Tan <[email protected]>
Sat, 12 Oct 2013 14:13:33 +0000 (22:13 +0800)
Those lock/release cases were a login loophole, woops...

=================================================================
control.c:61:11: warning: variable 'desired_mode' is used uninitialized whenever
      'if' condition is true [-Wsometimes-uninitialized]
        else if (!strcmp(action, "release")) {
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
control.c:77:6: note: uninitialized use occurs here
        if (desired_mode == CONTROL_START) {
            ^~~~~~~~~~~~
control.c:61:7: note: remove the 'if' if its condition is always false
        else if (!strcmp(action, "release")) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
control.c:38:2: note: variable 'desired_mode' is declared here
        ControlModes desired_mode;
        ^
====================================================================

Why, thank you clang :P


No differences found

UCC git Repository :: git.ucc.asn.au