[Libva] [PATCH] va.h: fix compile warning

Li Zhijian zhijianx.li at intel.com
Mon Nov 21 10:17:32 UTC 2016


define the VAPrivFunc with parameter 'void'

va.h will be installed, and it will cause a compiling failure if someone
include this header to his code. So this change make the compiler happy.

Signed-off-by: Li Zhijian <zhijianx.li at intel.com>
---
 va/va.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/va/va.h b/va/va.h
index 153a89b..8791906 100644
--- a/va/va.h
+++ b/va/va.h
@@ -291,7 +291,7 @@ const char *vaQueryVendorString (
     VADisplay dpy
 );
 
-typedef int (*VAPrivFunc)();
+typedef int (*VAPrivFunc)(void);
 
 /**
  * Return a function pointer given a function name in the library.
-- 
2.7.4



More information about the Libva mailing list