diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-06-13 17:47:56 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-06-13 21:10:25 -0400 |
commit | 85a6cafd81f6a68f8594d7315c1341d9443ca358 (patch) | |
tree | da6ff8d738379f7ae28bf9183362ccf2fa75cd7d /gdk/broadway/broadway-buffer.c | |
parent | 5b162fa44ac6106856a34c3b6a15b125ec95d10b (diff) | |
download | gtk+-85a6cafd81f6a68f8594d7315c1341d9443ca358.tar.gz |
broadway: Avoid compiler warnings
clang doesn't like self-assignment.
Diffstat (limited to 'gdk/broadway/broadway-buffer.c')
-rw-r--r-- | gdk/broadway/broadway-buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/broadway/broadway-buffer.c b/gdk/broadway/broadway-buffer.c index f864f526ee..d77d1de86e 100644 --- a/gdk/broadway/broadway-buffer.c +++ b/gdk/broadway/broadway-buffer.c @@ -392,7 +392,7 @@ broadway_buffer_encode (BroadwayBuffer *buffer, BroadwayBuffer *prev, GString *d hash = 0; for (j = x0; j < MIN(x1, x0 + block_size); j++) hash = hash * prime + line[j]; - for (j = j; j < x0 + block_size; j++) + for (; j < x0 + block_size; j++) hash = hash * prime; for (j = x0; j < x1; j++) @@ -405,7 +405,7 @@ broadway_buffer_encode (BroadwayBuffer *buffer, BroadwayBuffer *prev, GString *d } } // Do the last rows if height < block_size - for (i = i; i < y0 + block_size; i++) + for (; i < y0 + block_size; i++) { for (j = x0; j < x1; j++) block_hashes[j] = block_hashes[j] * vprime; |