New patch to fix FTBFS with GCC8 (Closes: #897745)
Thanks, Philip Chung.
Dmitry Smirnov
5 years ago
0 | Origin: upstream, https://github.com/synfig/synfig/commit/cb05b072fe6fffb4433140c631f422bdbc036722 | |
1 | Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897745 | |
2 | From: ice0 <konoplin@gmail.com> | |
3 | Date: Sat, 26 May 2018 07:54:58 -0700 | |
4 | Subject: fixed error preventing builing on gcc 8.1 | |
5 | ||
6 | --- a/ETL/_pen.h | |
7 | +++ b/ETL/_pen.h | |
8 | @@ -135,9 +135,10 @@ | |
9 | { | |
10 | typedef int value_type; | |
11 | value_type x,y; | |
12 | difference_type(value_type x, value_type y):x(x),y(y) { } | |
13 | - value_type &operator[](int i)const { return i?y:x; } | |
14 | + const value_type &operator[](int i) const { return i?y:x; } | |
15 | + value_type &operator[](int i) { return i?y:x; } | |
16 | }; | |
17 | ||
18 | protected: | |
19 | int x_,y_; |