From: Matt Turner Date: Thu, 28 Sep 2017 21:09:55 +0000 (-0700) Subject: mesa: Remove fprintf referring to libdxtn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb5338c4b77db70ea26b0745cff1cb3e330a5139;hp=82c54c4fdc8495d7522c782141c080314459690a;p=mesa.git mesa: Remove fprintf referring to libdxtn 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 --- diff --git a/src/mesa/main/texcompress_s3tc_tmp.h b/src/mesa/main/texcompress_s3tc_tmp.h index 3abce6e9040..61630f24751 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; } }