Open gijzelaerr opened 6 years ago
I did hit the same issue, seems the checks got stricter with the updated g++:
ubuntu@bionicle1:~/libs3$ g++ --version
g++ (Ubuntu 7.3.0-16ubuntu3) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ubuntu@bionicle1:~/libs3$
As a workaround you can just add an option to demote the error to a warning:
diff --git a/GNUmakefile b/GNUmakefile
index c81537c..ab1324e 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -136,7 +136,7 @@ ifndef CFLAGS
endif
endif
-CFLAGS += -Wall -Werror -Wshadow -Wextra \
+CFLAGS += -Wall -Werror -Wshadow -Wextra -Wno-format-truncation \
-Iinc \
$(CURL_CFLAGS) $(LIBXML2_CFLAGS) \
-DLIBS3_VER_MAJOR=\"$(LIBS3_VER_MAJOR)\" \
but in the long run better bounds checking might be needed.
Hi! When i try to compile libs3 on a clean Ubuntu 18.04 I run into troubles: