st/mesa: fix compilation warning on storage_flags_to_buffer_flags
authorTapani Pälli <tapani.palli@intel.com>
Fri, 22 Mar 2019 12:29:38 +0000 (14:29 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 25 Mar 2019 05:44:05 +0000 (07:44 +0200)
(warning: 'const' type qualifier on return type has no effect)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_cb_bufferobjects.c

index 4f77dad7874dabfb74a06d0c08f25dc4baa21bb6..080dcccba0b6cabffaf152c891914468484ca17a 100644 (file)
@@ -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)
 {