mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 20:14:37 +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
407fcf69e3
commit
7437436fe9
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>
|
||||
Francisco Ramírez <franchuti688@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.
|
||||
*/
|
||||
TVG_API Tvg_Canvas* tvg_swcanvas_create();
|
||||
TVG_API Tvg_Canvas* tvg_swcanvas_create(void);
|
||||
|
||||
|
||||
/*!
|
||||
|
@ -1057,7 +1057,7 @@ TVG_API Tvg_Result tvg_paint_get_blend_method(const Tvg_Paint* paint, Tvg_Blend_
|
|||
*
|
||||
* \return A new shape object.
|
||||
*/
|
||||
TVG_API Tvg_Paint* tvg_shape_new();
|
||||
TVG_API Tvg_Paint* tvg_shape_new(void);
|
||||
|
||||
|
||||
/*!
|
||||
|
@ -1732,7 +1732,7 @@ TVG_API Tvg_Result tvg_shape_get_gradient(const Tvg_Paint* paint, Tvg_Gradient**
|
|||
*
|
||||
* \return A new linear gradient object.
|
||||
*/
|
||||
TVG_API Tvg_Gradient* tvg_linear_gradient_new();
|
||||
TVG_API Tvg_Gradient* tvg_linear_gradient_new(void);
|
||||
|
||||
|
||||
/*!
|
||||
|
@ -1754,7 +1754,7 @@ TVG_API Tvg_Gradient* tvg_linear_gradient_new();
|
|||
*
|
||||
* \return A new radial gradient object.
|
||||
*/
|
||||
TVG_API Tvg_Gradient* tvg_radial_gradient_new();
|
||||
TVG_API Tvg_Gradient* tvg_radial_gradient_new(void);
|
||||
|
||||
|
||||
/*!
|
||||
|
@ -1976,7 +1976,7 @@ TVG_API Tvg_Result tvg_gradient_del(Tvg_Gradient* grad);
|
|||
*
|
||||
* \return A new picture object.
|
||||
*/
|
||||
TVG_API Tvg_Paint* tvg_picture_new();
|
||||
TVG_API Tvg_Paint* tvg_picture_new(void);
|
||||
|
||||
|
||||
/*!
|
||||
|
@ -2102,7 +2102,7 @@ TVG_API Tvg_Result tvg_picture_get_size(const Tvg_Paint* paint, float* w, float*
|
|||
*
|
||||
* \return A new scene object.
|
||||
*/
|
||||
TVG_API Tvg_Paint* tvg_scene_new();
|
||||
TVG_API Tvg_Paint* tvg_scene_new(void);
|
||||
|
||||
|
||||
/*!
|
||||
|
@ -2180,7 +2180,7 @@ TVG_API Tvg_Result tvg_scene_clear(Tvg_Paint* scene, bool free);
|
|||
*
|
||||
* \return A new Tvg_Saver object.
|
||||
*/
|
||||
TVG_API Tvg_Saver* tvg_saver_new();
|
||||
TVG_API Tvg_Saver* tvg_saver_new(void);
|
||||
|
||||
|
||||
/*!
|
||||
|
@ -2264,7 +2264,7 @@ TVG_API Tvg_Result tvg_saver_del(Tvg_Saver* saver);
|
|||
*
|
||||
* \since 0.13
|
||||
*/
|
||||
TVG_API Tvg_Animation* tvg_animation_new();
|
||||
TVG_API Tvg_Animation* tvg_animation_new(void);
|
||||
|
||||
|
||||
/*!
|
||||
|
@ -2426,7 +2426,7 @@ TVG_API Tvg_Result tvg_animation_del(Tvg_Animation* animation);
|
|||
*
|
||||
* \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