mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
capi: fix compile warning
Fix warning during build with lvgl https://github.com/lvgl/lvgl/pull/6081/ error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
a1818cf62b
commit
d113540d61
2 changed files with 10 additions and 9 deletions
1
AUTHORS
1
AUTHORS
|
@ -30,3 +30,4 @@ Lorcán Mc Donagh <lorcan@lmdsp.com>
|
||||||
Lucas Niu <hoiyu3twon9@gmail.com>
|
Lucas Niu <hoiyu3twon9@gmail.com>
|
||||||
Francisco Ramírez <franchuti688@gmail.com>
|
Francisco Ramírez <franchuti688@gmail.com>
|
||||||
Abdelrahman Ashraf <a.theashraf@gmail.com>
|
Abdelrahman Ashraf <a.theashraf@gmail.com>
|
||||||
|
Neo Xu <neo.xu1990@gmail.com>
|
||||||
|
|
|
@ -429,7 +429,7 @@ typedef enum {
|
||||||
*
|
*
|
||||||
* \return A new Tvg_Canvas object.
|
* \return A new Tvg_Canvas object.
|
||||||
*/
|
*/
|
||||||
TVG_API Tvg_Canvas* tvg_swcanvas_create();
|
TVG_API Tvg_Canvas* tvg_swcanvas_create(void);
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -1056,7 +1056,7 @@ TVG_API Tvg_Result tvg_paint_get_blend_method(const Tvg_Paint* paint, Tvg_Blend_
|
||||||
*
|
*
|
||||||
* \return A new shape object.
|
* \return A new shape object.
|
||||||
*/
|
*/
|
||||||
TVG_API Tvg_Paint* tvg_shape_new();
|
TVG_API Tvg_Paint* tvg_shape_new(void);
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -1728,7 +1728,7 @@ TVG_API Tvg_Result tvg_shape_get_gradient(const Tvg_Paint* paint, Tvg_Gradient**
|
||||||
*
|
*
|
||||||
* \return A new linear gradient object.
|
* \return A new linear gradient object.
|
||||||
*/
|
*/
|
||||||
TVG_API Tvg_Gradient* tvg_linear_gradient_new();
|
TVG_API Tvg_Gradient* tvg_linear_gradient_new(void);
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -1750,7 +1750,7 @@ TVG_API Tvg_Gradient* tvg_linear_gradient_new();
|
||||||
*
|
*
|
||||||
* \return A new radial gradient object.
|
* \return A new radial gradient object.
|
||||||
*/
|
*/
|
||||||
TVG_API Tvg_Gradient* tvg_radial_gradient_new();
|
TVG_API Tvg_Gradient* tvg_radial_gradient_new(void);
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -1972,7 +1972,7 @@ TVG_API Tvg_Result tvg_gradient_del(Tvg_Gradient* grad);
|
||||||
*
|
*
|
||||||
* \return A new picture object.
|
* \return A new picture object.
|
||||||
*/
|
*/
|
||||||
TVG_API Tvg_Paint* tvg_picture_new();
|
TVG_API Tvg_Paint* tvg_picture_new(void);
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -2099,7 +2099,7 @@ TVG_API Tvg_Result tvg_picture_get_size(const Tvg_Paint* paint, float* w, float*
|
||||||
*
|
*
|
||||||
* \return A new scene object.
|
* \return A new scene object.
|
||||||
*/
|
*/
|
||||||
TVG_API Tvg_Paint* tvg_scene_new();
|
TVG_API Tvg_Paint* tvg_scene_new(void);
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -2177,7 +2177,7 @@ TVG_API Tvg_Result tvg_scene_clear(Tvg_Paint* scene, bool free);
|
||||||
*
|
*
|
||||||
* \return A new Tvg_Saver object.
|
* \return A new Tvg_Saver object.
|
||||||
*/
|
*/
|
||||||
TVG_API Tvg_Saver* tvg_saver_new();
|
TVG_API Tvg_Saver* tvg_saver_new(void);
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -2261,7 +2261,7 @@ TVG_API Tvg_Result tvg_saver_del(Tvg_Saver* saver);
|
||||||
*
|
*
|
||||||
* \since 0.13
|
* \since 0.13
|
||||||
*/
|
*/
|
||||||
TVG_API Tvg_Animation* tvg_animation_new();
|
TVG_API Tvg_Animation* tvg_animation_new(void);
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -2423,7 +2423,7 @@ TVG_API Tvg_Result tvg_animation_del(Tvg_Animation* animation);
|
||||||
*
|
*
|
||||||
* \return Tvg_Animation A new Tvg_LottieAnimation object.
|
* \return Tvg_Animation A new Tvg_LottieAnimation object.
|
||||||
*/
|
*/
|
||||||
TVG_API Tvg_Animation* tvg_lottie_animation_new();
|
TVG_API Tvg_Animation* tvg_lottie_animation_new(void);
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
Loading…
Add table
Reference in a new issue