fix longstanding compiler warning
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 20 Jul 2017 22:27:36 +0000 (18:27 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 18 Sep 2017 15:40:53 +0000 (11:40 -0400)
libs/surfaces/mackie/strip.cc

index de9aa89c8a992ec96e16f9de0dadb20e5022e8dc..28a2fa22bb87d64d4d67603b064655f4336a5d16 100644 (file)
@@ -1480,11 +1480,10 @@ void
 Strip::setup_eq_vpot (boost::shared_ptr<Stripable> r)
 {
        boost::shared_ptr<AutomationControl> pc;
-
-       const uint32_t global_pos = _surface->mcp().global_index (*this);
        string pot_id;
 
 #ifdef MIXBUS
+       const uint32_t global_pos = _surface->mcp().global_index (*this);
        int eq_band = -1;
        std::string band_name;
        if (r->is_input_strip ()) {