[aseprite] 111/250: Avoid warning on Release build in cmd::SetPalette() ctor

Tobias Hansen thansen at moszumanska.debian.org
Sun Dec 20 15:27:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 4141adcd23433e4ae371b7fc6f400b7fe1677789
Author: David Capello <davidcapello at gmail.com>
Date:   Wed Sep 30 16:30:19 2015 -0300

    Avoid warning on Release build in cmd::SetPalette() ctor
---
 src/app/cmd/set_palette.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/app/cmd/set_palette.cpp b/src/app/cmd/set_palette.cpp
index a862c8e..a184223 100644
--- a/src/app/cmd/set_palette.cpp
+++ b/src/app/cmd/set_palette.cpp
@@ -32,6 +32,7 @@ SetPalette::SetPalette(Sprite* sprite, frame_t frame, const Palette* newPalette)
   // Check differences between current sprite palette and the new one
   m_from = m_to = -1;
   int diffs = curPalette->countDiff(newPalette, &m_from, &m_to);
+  (void)diffs;
   ASSERT(diffs > 0);
 
   if (m_from >= 0 && m_to >= m_from) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list