From 24408acca47619bdb2da1d3f2fa91b1b6e092e16 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Mon, 9 Mar 2020 10:35:20 +0200 Subject: [PATCH] nir: fix compilation warning on glsl_get_internal_ifc_packing MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Removes following warning: warning: 'const' type qualifier on return type has no effect Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Tested-by: Marge Bot Part-of: --- src/compiler/nir_types.cpp | 2 +- src/compiler/nir_types.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 65cd250e5a1..d7e0941629b 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -772,7 +772,7 @@ glsl_type_get_image_count(const struct glsl_type *type) return 0; } -const enum glsl_interface_packing +enum glsl_interface_packing glsl_get_internal_ifc_packing(const struct glsl_type *type, bool std430_supported) { diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h index e501cc70418..544de73a88c 100644 --- a/src/compiler/nir_types.h +++ b/src/compiler/nir_types.h @@ -52,7 +52,7 @@ int glsl_get_struct_field_offset(const struct glsl_type *type, const struct glsl_struct_field * glsl_get_struct_field_data(const struct glsl_type *type, unsigned index); -const enum glsl_interface_packing +enum glsl_interface_packing glsl_get_internal_ifc_packing(const struct glsl_type *type, bool std430_supported); -- 2.30.2