1
0
Fork 0

[F] Fixed clang-tidy

This commit is contained in:
seleznevae 2019-01-01 23:06:19 +03:00
parent 4943f941d4
commit e54eaf7bfe
3 changed files with 6 additions and 5 deletions

View File

@ -153,7 +153,8 @@ script:
if [ "${BASIC_LINUX_CLANG}" = "yes" ]; then
# don't know how force warnings of clang-tidy to be errors
cp .clang-tidy lib
clang-tidy -dump-config lib/fort.c
clang-tidy lib/fort.c
echo "Clang-tidy exit code is $?"
fi

View File

@ -4125,7 +4125,7 @@ fort_row_t *create_row_from_string(const char *str)
char_type *pos = NULL;
char_type *base_pos = NULL;
unsigned int number_of_separators = 0;
size_t number_of_separators = 0;
fort_row_t *row = create_row();
if (row == NULL)
@ -4214,7 +4214,7 @@ fort_row_t *create_row_from_wstring(const wchar_t *str)
char_type *pos = NULL;
char_type *base_pos = NULL;
unsigned int number_of_separators = 0;
size_t number_of_separators = 0;
fort_row_t *row = create_row();
if (row == NULL)
@ -5321,7 +5321,7 @@ fort_status_t get_table_sizes(const ft_table_t *table, size_t *rows, size_t *col
}
*/
for (size_t row_index = 0; row_index < vector_size(table->rows); ++row_index) {
fort_row_t *row = *(fort_row_t**)vector_at(table->rows, row_index);
fort_row_t *row = *(fort_row_t **)vector_at(table->rows, row_index);
size_t cols_in_row = columns_in_row(row);
if (cols_in_row > *cols)
*cols = cols_in_row;

View File

@ -118,7 +118,7 @@ fort_status_t get_table_sizes(const ft_table_t *table, size_t *rows, size_t *col
}
*/
for (size_t row_index = 0; row_index < vector_size(table->rows); ++row_index) {
fort_row_t *row = *(fort_row_t**)vector_at(table->rows, row_index);
fort_row_t *row = *(fort_row_t **)vector_at(table->rows, row_index);
size_t cols_in_row = columns_in_row(row);
if (cols_in_row > *cols)
*cols = cols_in_row;