Fix unused variable warnings

This commit is contained in:
David Capello 2023-09-20 16:04:50 -03:00
parent 8b747b4d09
commit 5e34ae0ce2
7 changed files with 3 additions and 10 deletions

View File

@ -207,7 +207,6 @@ private:
UserData newUserData= m_userDataView.userData();
const bool opacityChanged = newOpacity != m_lastValues.opacity;
const bool zIndexChanged = newZIndex != m_lastValues.zIndex;
const bool colorChanged = newUserData.color() != m_lastValues.color;
const bool textChanged = newUserData.text() != m_lastValues.text;

View File

@ -42,7 +42,6 @@ namespace app {
ui::Timer m_restartPreviewTimer;
std::mutex m_filterMgrMutex;
app::Task m_filterTask;
bool m_filterIsDone;
};
} // namespace app

View File

@ -101,7 +101,6 @@ namespace app {
const doc::LayerImage* m_bgLayer = nullptr;
// TODO these members are the same as in render::Render, we should
// see a way to merge both
const doc::Layer* m_selectedLayerForOpacity = nullptr;
const doc::Layer* m_selectedLayer = nullptr;
doc::frame_t m_selectedFrame = -1;
const doc::Image* m_previewImage = nullptr;

View File

@ -653,7 +653,7 @@ double algo_spline_get_tan(double x0, double y0, double x1, double y1,
/* Derivatives of x(t) and y(t). */
double x, dx, ddx, dddx;
double y, dy, ddy, dddy;
double dy, ddy, dddy;
int i;
/* Temp variables used in the setup. */
@ -693,21 +693,18 @@ double algo_spline_get_tan(double x0, double y0, double x1, double y1,
dx = xdt3_term - xdt2_term + 3 * dt * (x1 - x0);
dy = ydt3_term - ydt2_term + dt * 3 * (y1 - y0);
x = x0;
y = y0;
old_x = x0;
old_dx = dx;
old_dy = dy;
x += .5;
y += .5;
for (i=1; i<npts; i++) {
ddx += dddx;
ddy += dddy;
dx += ddx;
dy += ddy;
x += dx;
y += dy;
out_x = x;
if (out_x > in_x) {

View File

@ -142,7 +142,6 @@ Image* read_image(std::istream& is, bool setId)
if (err != Z_OK)
throw base::Exception("ZLib error %d in inflateInit().", err);
int uncompressed_offset = 0;
int remain = avail_bytes;
std::vector<uint8_t> compressed(4096);
@ -186,7 +185,6 @@ Image* read_image(std::istream& is, bool setId)
int uncompressed_bytes = (int)((address_end - address) - zstream.avail_out);
if (uncompressed_bytes > 0) {
uncompressed_offset += uncompressed_bytes;
address += uncompressed_bytes;
}
} while (zstream.avail_in != 0 && zstream.avail_out == 0);

View File

@ -210,6 +210,7 @@ bool Playback::handleExitFrame(const frame_t frameDelta)
auto tag = this->tag();
if (tag && tag->contains(m_frame)) {
ASSERT(!m_playing.empty());
[[maybe_unused]]
int forward = m_playing.back()->forward;
PLAY_TRACE("tag aniDir=", (int)tag->aniDir(),

@ -1 +1 @@
Subproject commit d537510d98bc9706675746d132fa460639254a78
Subproject commit cd3420c3a5797f1200fd1e1970ca29598f2c2436