From: Tapani Pälli Date: Fri, 22 Mar 2019 12:29:38 +0000 (+0200) Subject: st/mesa: fix compilation warning on storage_flags_to_buffer_flags X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec12316489380564ed242118d7cb035c7997e044;p=mesa.git st/mesa: fix compilation warning on storage_flags_to_buffer_flags (warning: 'const' type qualifier on return type has no effect) Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Reviewed-by: Dave Airlie --- 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) {