diff --git a/.travis.yml b/.travis.yml index 3b65ab8..c588148 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,7 @@ script: - cmake .. -DFORT_TEST_BUILD=ON -DFORT_GCC_BUILD=${GCC_BUILD} - cmake --build . --target all - ls + - LSAN_OPTIONS=verbosity=1:log_threads=1 ./libfort_dummy - LSAN_OPTIONS=verbosity=1:log_threads=1 ./libfort_example - LSAN_OPTIONS=verbosity=1:log_threads=1 ./libfort_test diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c3fb8d..049e76d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,8 @@ target_link_libraries(libfort_test cmocka) +add_executable(${PROJECT_NAME}_dummy + example/main2.c) diff --git a/example/main2.c b/example/main2.c new file mode 100644 index 0000000..c5d6809 --- /dev/null +++ b/example/main2.c @@ -0,0 +1,6 @@ +#include + +int main() +{ + return 0; +} diff --git a/src/fort.c b/src/fort.c index b96e936..505a89e 100644 --- a/src/fort.c +++ b/src/fort.c @@ -333,7 +333,7 @@ int ft_nwwrite_ln(FTABLE *FT_RESTRICT table, size_t n, const wchar_t* FT_RESTRIC } -FT_EXTERN int ft_row_write(FTABLE *FT_RESTRICT table, size_t cols, const char* FT_RESTRICT cells[]) +int ft_row_write(FTABLE *FT_RESTRICT table, size_t cols, const char* FT_RESTRICT cells[]) { size_t i = 0; assert(table); @@ -347,7 +347,7 @@ FT_EXTERN int ft_row_write(FTABLE *FT_RESTRICT table, size_t cols, const char* F return F_SUCCESS; } -FT_EXTERN int ft_row_write_ln(FTABLE *FT_RESTRICT table, size_t cols, const char* FT_RESTRICT cells[]) +int ft_row_write_ln(FTABLE *FT_RESTRICT table, size_t cols, const char* FT_RESTRICT cells[]) { assert(table); int status = ft_row_write(table, cols, cells);