aboutsummaryrefslogtreecommitdiff
path: root/pacc/pacc-gl.c
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2018-01-05 23:30:41 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2018-01-05 23:30:41 +0900
commit98f4e72f1ae492771a755bf86c88da7c21f20720 (patch)
treeb1c85eadbe23432f956bc3377ea88a8449672175 /pacc/pacc-gl.c
parentdf6915f07e6cc13600a750b4fb4a8adf482b45f2 (diff)
removed most compiler warnings
Diffstat (limited to 'pacc/pacc-gl.c')
-rw-r--r--pacc/pacc-gl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pacc/pacc-gl.c b/pacc/pacc-gl.c
index ada045e..ae0db0e 100644
--- a/pacc/pacc-gl.c
+++ b/pacc/pacc-gl.c
@@ -188,6 +188,7 @@ static void pacc_buf_delete(struct pacc_buf *pb) {
static struct pacc_buf *pacc_gen_buf(
struct pacc_ctx *pc, struct pacc_tex *pt, enum pacc_buf_mode mode) {
+ (void)pc;
struct pacc_buf *pb = malloc(sizeof(*pb));
if (!pb) goto err;
*pb = (struct pacc_buf) {
@@ -432,6 +433,7 @@ static void pacc_tex_delete(struct pacc_tex *pt) {
}
static struct pacc_tex *pacc_gen_tex(struct pacc_ctx *pc, int w, int h) {
+ (void)pc;
struct pacc_tex *pt = malloc(sizeof(*pt));
if (!pt) goto err;
*pt = (struct pacc_tex) {