[A] Added build with old C standard

This commit is contained in:
seleznevae 2018-12-03 23:01:09 +03:00
parent 10d87cc6b2
commit 703e6451f2
3 changed files with 9 additions and 4 deletions

View File

@ -126,6 +126,15 @@ script:
export CXX=${FORT_CXX_COMPILER}; export CXX=${FORT_CXX_COMPILER};
fi fi
# basic build with old c standard
- |
if [ "${BASIC_LINUX_GCC}" = "yes" ]; then
cd lib
gcc -Wextra -Wall -Werror --std=c89 fort.c -c -o fort.o
rm fort.o
cd ..
fi
# cppcheck run # cppcheck run
- | - |
if [ "${BASIC_LINUX_GCC}" = "yes" ]; then if [ "${BASIC_LINUX_GCC}" = "yes" ]; then

View File

@ -1741,7 +1741,6 @@ const char *ft_to_string(const ft_table_t *table)
const fort_row_t *, const fort_row_t *, const fort_row_t *, const fort_row_t *,
enum HorSeparatorPos, const separator_t *, enum HorSeparatorPos, const separator_t *,
const context_t *) = print_row_separator; const context_t *) = print_row_separator;
// int (*snprint_n_chars_)(char *, size_t, size_t, char) = snprint_n_chars;
int (*snprint_n_strings_)(char *, size_t, size_t, const char *) = snprint_n_strings; int (*snprint_n_strings_)(char *, size_t, size_t, const char *) = snprint_n_strings;
assert(table); assert(table);
@ -1843,7 +1842,6 @@ const wchar_t *ft_to_wstring(const ft_table_t *table)
const fort_row_t *, const fort_row_t *, const fort_row_t *, const fort_row_t *,
enum HorSeparatorPos, const separator_t *, enum HorSeparatorPos, const separator_t *,
const context_t *) = wprint_row_separator; const context_t *) = wprint_row_separator;
// int (*snprint_n_chars_)(wchar_t *, size_t, size_t, wchar_t) = wsnprint_n_chars;
int (*snprint_n_strings_)(wchar_t *, size_t, size_t, const char *) = wsnprint_n_string; int (*snprint_n_strings_)(wchar_t *, size_t, size_t, const char *) = wsnprint_n_string;

View File

@ -586,7 +586,6 @@ const char *ft_to_string(const ft_table_t *table)
const fort_row_t *, const fort_row_t *, const fort_row_t *, const fort_row_t *,
enum HorSeparatorPos, const separator_t *, enum HorSeparatorPos, const separator_t *,
const context_t *) = print_row_separator; const context_t *) = print_row_separator;
// int (*snprint_n_chars_)(char *, size_t, size_t, char) = snprint_n_chars;
int (*snprint_n_strings_)(char *, size_t, size_t, const char *) = snprint_n_strings; int (*snprint_n_strings_)(char *, size_t, size_t, const char *) = snprint_n_strings;
assert(table); assert(table);
@ -688,7 +687,6 @@ const wchar_t *ft_to_wstring(const ft_table_t *table)
const fort_row_t *, const fort_row_t *, const fort_row_t *, const fort_row_t *,
enum HorSeparatorPos, const separator_t *, enum HorSeparatorPos, const separator_t *,
const context_t *) = wprint_row_separator; const context_t *) = wprint_row_separator;
// int (*snprint_n_chars_)(wchar_t *, size_t, size_t, wchar_t) = wsnprint_n_chars;
int (*snprint_n_strings_)(wchar_t *, size_t, size_t, const char *) = wsnprint_n_string; int (*snprint_n_strings_)(wchar_t *, size_t, size_t, const char *) = wsnprint_n_string;