summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Zhijian <zhijianx.li@intel.com>2016-11-22 12:44:05 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2016-11-22 12:49:44 +0800
commit598fb9ee175b237e2db737039c2714bc1a63b0e2 (patch)
tree656a186279bc3a7f7c84fc076b70c81384120947
parentd0c867c683671b60059175e74a46e00e7c115091 (diff)
va.h: fix compile warning
If we specify compiling option with "-Werror=strict-prototypes", we will get the following error: va/va.h:294:1: error: function declaration isn't a prototype [-Werror=strict-prototypes] typedef int (*VAPrivFunc)(); This patch declares the VAPrivFunc with parameter 'void', to make the compiler happy. Signed-off-by: Li Zhijian <zhijianx.li@intel.com>
-rw-r--r--va/va.h2
1 files changed, 1 insertions, 1 deletions
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.