[aseprite] 120/128: Fix static_assert() error on gcc and clang

Tobias Hansen thansen at moszumanska.debian.org
Mon May 9 21:24:30 UTC 2016


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

thansen pushed a commit to branch master
in repository aseprite.

commit 20c78f32c62bed54af5760dae77f67a80fc46f04
Author: David Capello <davidcapello at gmail.com>
Date:   Thu May 5 23:12:55 2016 -0300

    Fix static_assert() error on gcc and clang
---
 src/doc/algorithm/shrink_bounds.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/doc/algorithm/shrink_bounds.cpp b/src/doc/algorithm/shrink_bounds.cpp
index 36221e2..d3dc4bf 100644
--- a/src/doc/algorithm/shrink_bounds.cpp
+++ b/src/doc/algorithm/shrink_bounds.cpp
@@ -22,7 +22,7 @@ namespace {
 template<typename ImageTraits>
 bool is_same_pixel(color_t pixel1, color_t pixel2)
 {
-  static_assert(false, "No is_same_pixel impl");
+  static_assert(false && sizeof(ImageTraits), "No is_same_pixel impl");
 }
 
 template<>

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