[C] Fixed some compiler warnings

This commit is contained in:
seleznevae 2018-04-16 21:15:44 +03:00
parent 551ec6089b
commit d4a6e59a97
4 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
#include <wchar.h>
#include <locale.h>
static FTABLE *create_basic_table()
static FTABLE *create_basic_table(void)
{
FTABLE *table = ft_create_table();
ft_set_cell_option(table, FT_ANY_ROW, 0, FT_COPT_TEXT_ALIGN, FT_ALIGNED_CENTER);

View File

@ -364,7 +364,7 @@ fort_table_options_t g_table_options = {
};
fort_table_options_t *create_table_options()
fort_table_options_t *create_table_options(void)
{
fort_table_options_t *options = (fort_table_options_t *)F_CALLOC(sizeof(fort_table_options_t), 1);
if (options == NULL) {

View File

@ -146,7 +146,7 @@ extern fort_table_options_t g_table_options;
fort_table_options_t* create_table_options();
fort_table_options_t* create_table_options(void);
fort_table_options_t* copy_table_options(const fort_table_options_t *option);
void destroy_table_options(fort_table_options_t* options);

View File

@ -23,7 +23,7 @@ void test_free(void *ptr)
}
}
static int create_simple_table_and_show()
static int create_simple_table_and_show(void)
{
FTABLE *table = NULL;
int result = 0;