[igt-dev] [PATCH i-g-t 1/1] tests/kms_properties: Fix compiler warning

Rodrigo Vivi rodrigo.vivi at intel.com
Mon Nov 5 15:10:20 UTC 2018


On Mon, Nov 05, 2018 at 03:37:33PM +0200, Petri Latvala wrote:
> ../tests/kms_properties.c:113:11: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
> 
> Fixes: 7983e19ed62e ("tests/kms_properties: Add functional test for "max bpc" property")
> Signed-off-by: Petri Latvala <petri.latvala at intel.com>
> Cc: Radhakrishna Sripada <radhakrishna.sripada at intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>


Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>



> ---
>  tests/kms_properties.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/kms_properties.c b/tests/kms_properties.c
> index 503a5c25..82d28e9b 100644
> --- a/tests/kms_properties.c
> +++ b/tests/kms_properties.c
> @@ -30,7 +30,7 @@
>  #include <time.h>
>  
>  struct additional_test {
> -	char *name;
> +	const char *name;
>  	uint32_t obj_type;
>  	void (*prop_test)(int fd, uint32_t id, uint32_t type, drmModePropertyPtr prop,
>  			  uint32_t prop_id, uint64_t prop_value, bool atomic);
> -- 
> 2.18.0
> 


More information about the igt-dev mailing list