[aseprite] 199/250: Avoid warning about unused variable on non-OSX platforms

Tobias Hansen thansen at moszumanska.debian.org
Sun Dec 20 15:27:30 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 76e7d15484b303fb508fbd65b5c5de77b1399704
Author: David Capello <davidcapello at gmail.com>
Date:   Mon Oct 19 16:41:41 2015 -0300

    Avoid warning about unused variable on non-OSX platforms
---
 src/app/ui/file_selector.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/ui/file_selector.cpp b/src/app/ui/file_selector.cpp
index 0eb21a6..828eaa4 100644
--- a/src/app/ui/file_selector.cpp
+++ b/src/app/ui/file_selector.cpp
@@ -193,9 +193,9 @@ protected:
       case kKeyDownMessage: {
         KeyMessage* keyMsg = static_cast<KeyMessage*>(msg);
         KeyScancode scancode = keyMsg->scancode();
-        int unicode = keyMsg->unicodeChar();
 
 #ifdef __APPLE__
+        int unicode = keyMsg->unicodeChar();
         bool up = (msg->cmdPressed() && scancode == kKeyUp);
         bool enter = (msg->cmdPressed() && scancode == kKeyDown);
         bool back = (msg->cmdPressed() && msg->shiftPressed() && unicode == '[');

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