From 8b094e8af3215bed1c3c3c662e4b93163dac6bbc Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 15 Mar 2024 20:42:42 +0100 Subject: Fix a bunch of compiler warnings, particularly for old compilers Works now much better with old C99 and C++98 standard compilers. Fixed: C++ comments in C files and headers included by C files. There are still some warnings with C90 though but these would be hard to fix and left as-is for now. test/fractals.cxx: some arrays were too small by 1, or the compiler warned at least (false positive?). Anyway, it's fixed now. --- src/flstring.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/flstring.h') diff --git a/src/flstring.h b/src/flstring.h index e4c7ea491..04199d13e 100644 --- a/src/flstring.h +++ b/src/flstring.h @@ -82,8 +82,8 @@ FL_EXPORT extern size_t fl_strlcat(char *, const char *, size_t); # define strlcat fl_strlcat # endif /* !HAVE_STRLCAT */ -// promoted to -//FL_EXPORT extern size_t fl_strlcpy(char *, const char *, size_t); +/* promoted to */ +/* FL_EXPORT extern size_t fl_strlcpy(char *, const char *, size_t); */ # ifndef HAVE_STRLCPY # define strlcpy fl_strlcpy # endif /* !HAVE_STRLCPY */ -- cgit v1.2.3