shithub: orca

Download patch

ref: 784f9c56a12f093c6836775898e53d0671527ace
parent: f5dd21b4bb360cc8dbbd89aee624ed4916ccfc06
author: cancel <cancel@cancel.fm>
date: Mon Nov 26 08:28:24 EST 2018

Fix warning in release build

--- a/gbuffer.h
+++ b/gbuffer.h
@@ -3,6 +3,7 @@
 
 inline Glyph gbuffer_peek(Gbuffer gbuf, Usz height, Usz width, Usz y, Usz x) {
   assert(y < height && x < width);
+  (void)height;
   return gbuf[y + width + x];
 }
 
@@ -18,6 +19,7 @@
 inline void gbuffer_poke(Gbuffer gbuf, Usz height, Usz width, Usz y, Usz x,
                          Glyph g) {
   assert(y < height && x < width);
+  (void)height;
   gbuf[y * width + x] = g;
 }