From ec12316489380564ed242118d7cb035c7997e044 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Fri, 22 Mar 2019 14:29:38 +0200 Subject: [PATCH] st/mesa: fix compilation warning on storage_flags_to_buffer_flags MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit (warning: 'const' type qualifier on return type has no effect) Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Reviewed-by: Dave Airlie --- src/mesa/state_tracker/st_cb_bufferobjects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c index 4f77dad7874..080dcccba0b 100644 --- a/src/mesa/state_tracker/st_cb_bufferobjects.c +++ b/src/mesa/state_tracker/st_cb_bufferobjects.c @@ -223,7 +223,7 @@ storage_flags_to_buffer_flags(GLbitfield storageFlags) * usage hint, return a pipe_resource_usage value (PIPE_USAGE_DYNAMIC, * STREAM, etc). */ -static const enum pipe_resource_usage +static enum pipe_resource_usage buffer_usage(GLenum target, GLboolean immutable, GLbitfield storageFlags, GLenum usage) { -- 2.30.2