From: Eugeni Dodonov Date: Fri, 10 Jun 2011 18:26:02 +0000 (-0300) Subject: Fix format not a string literal error with -Werror=format-security X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23ef4a6063668c187d00a0502207f0c03be5f994;p=mesa.git Fix format not a string literal error with -Werror=format-security A trivial fix for error: format not a string literal and no format arguments with compiling with -Werror=format-security flags. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 09033aecd7c..7c73a8fbf02 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -100,7 +100,7 @@ fs_visitor::fail(const char *format, ...) this->fail_msg = msg; if (INTEL_DEBUG & DEBUG_WM) { - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); } }