[igt-dev] [PATCH i-g-t] lib/igt_kms: Fix enum type in igt_pipe_has_prop.

Ville Syrjälä ville.syrjala at linux.intel.com
Thu Mar 15 12:51:04 UTC 2018


On Thu, Mar 15, 2018 at 12:01:04PM +0100, Maarten Lankhorst wrote:
> Found when compiling igt with clang:
> [284/819] Compiling C object 'tests/kms_crtc_background_color at exe/kms_crtc_background_color.c.o'.
> ../tests/kms_crtc_background_color.c:140:48: warning: implicit conversion from enumeration type
> 	'enum igt_atomic_crtc_properties' to different enumeration type 'enum igt_atomic_connector_properties' [-Wenum-conversion]
> 
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>

Reviewed-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

> ---
>  lib/igt_kms.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/igt_kms.h b/lib/igt_kms.h
> index 1c46186e8a9d..672930e9849f 100644
> --- a/lib/igt_kms.h
> +++ b/lib/igt_kms.h
> @@ -615,7 +615,7 @@ igt_pipe_get_prop(igt_display_t *display, enum pipe pipe,
>   */
>  static inline bool
>  igt_pipe_has_prop(igt_display_t *display, enum pipe pipe,
> -		  enum igt_atomic_connector_properties prop)
> +		  enum igt_atomic_crtc_properties prop)
>  {
>  	return display->pipes[pipe].props[prop];
>  }
> -- 
> 2.16.2
> 
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev

-- 
Ville Syrjälä
Intel OTC


More information about the igt-dev mailing list