From cce531a5edd856f6520de48a1fb076da53f8b437 Mon Sep 17 00:00:00 2001 From: Bernd Busse Date: Thu, 17 Dec 2020 23:19:53 +0100 Subject: [PATCH] opengl: fix warning about unused variable --- src/opengl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/opengl.c b/src/opengl.c index 842f29f6..2fb8172d 100644 --- a/src/opengl.c +++ b/src/opengl.c @@ -520,9 +520,7 @@ bool glx_init_rounded_corners(session_t *ps) { strlen(texture_func) + 1; char *shader_str = ccalloc(len, char); - char *pc = shader_str; - sprintf(pc, FRAG_SHADER, extension, sampler_type, texture_func); - pc += strlen(pc); + sprintf(shader_str, FRAG_SHADER, extension, sampler_type, texture_func); assert(strlen(shader_str) < len); log_debug("Generated rounded corners shader:\n%s\n", shader_str);