From 8b842bb7061ccd13be2f04ccd4b3728c63911aff Mon Sep 17 00:00:00 2001 From: Petri Latvala Date: Mon, 5 Nov 2018 15:37:33 +0200 Subject: tests/kms_properties: Fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../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 Cc: Radhakrishna Sripada Cc: Rodrigo Vivi Reviewed-by: Rodrigo Vivi --- tests/kms_properties.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_properties.c') 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 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); -- cgit v1.2.3