From fb5338c4b77db70ea26b0745cff1cb3e330a5139 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 28 Sep 2017 14:09:55 -0700 Subject: [PATCH] mesa: Remove fprintf referring to libdxtn MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When this file is included by Gallium, the fprintf causes it to fail to compile. This is an unreachable error case, and we shouldn't be calling fprintf directly. Reviewed-by: Nicolai Hähnle Reviewed-by: Emil Velikov --- src/mesa/main/texcompress_s3tc_tmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/texcompress_s3tc_tmp.h b/src/mesa/main/texcompress_s3tc_tmp.h index 3abce6e..61630f2 100644 --- a/src/mesa/main/texcompress_s3tc_tmp.h +++ b/src/mesa/main/texcompress_s3tc_tmp.h @@ -983,7 +983,7 @@ static void tx_compress_dxtn(GLint srccomps, GLint width, GLint height, const GL } break; default: - fprintf(stderr, "libdxtn: Bad dstFormat %d in tx_compress_dxtn\n", destFormat); + assert(false); return; } } -- 2.7.4