diff --git a/.travis.yml b/.travis.yml index f3ef9ea..a0c465f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/lib/fort.c b/lib/fort.c index a4ed127..196a7e0 100644 --- a/lib/fort.c +++ b/lib/fort.c @@ -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; diff --git a/src/table.c b/src/table.c index 69c6f4b..0a03933 100644 --- a/src/table.c +++ b/src/table.c @@ -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;