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

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Thu Mar 15 11:01:04 UTC 2018


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>
---
 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



More information about the igt-dev mailing list