Created attachment 241361 [details] patch to remove unused variable l; % cd /usr/ports/devel/android-tools % make (snip) [ 80% 508/629] /usr/bin/cc -DBORINGSSL_IMPLEMENTATION -I/usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9fe412d360a2edfaca327efdd/vendor/boringssl/third_party/googletest/include -I/usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9fe412d360a2edfaca327efdd/vendor/boringssl/crypto/../include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -Wvla -ggdb -Wall -fvisibility=hidden -fno-common -Wnewline-eof -fcolor-diagnostics -Wimplicit-fallthrough -Wmissing-prototypes -Wold-style-definition -Wstrict-prototypes -Wshadow -D_XOPEN_SOURCE=700 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNDEBUG -MD -MT vendor/boringssl/crypto/CMakeFiles/crypto.dir/x509/t_x509.c.o -MF vendor/boringssl/crypto/CMakeFiles/crypto.dir/x509/t_x509.c.o.d -o vendor/boringssl/crypto/CMakeFiles/crypto.dir/x509/t_x509.c.o -c /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9fe412d360a2edfaca327efdd/vendor/boringssl/crypto/x509/t_x509.c FAILED: vendor/boringssl/crypto/CMakeFiles/crypto.dir/x509/t_x509.c.o /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9fe412d360a2edfaca327efdd/vendor/boringssl/crypto/x509/t_x509.c:500:18: error: variable 'l' set but not used [-Werror,-Wunused-but-set-variable] int ret = 0, l, i; ^ 1 error generated. ninja: build stopped: subcommand failed. ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /usr/ports/devel/android-tools
(In reply to Masachika ISHIZUKA from comment #0) Hello Masachika, Thanks for the diff, I used it in bug #271321 while updating the port itself to 34.0.0
Hi, Didn't see this bug at first, and I've come up with the same diff to fix build on 13-STABLE also. Regards.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1e09ad4bcecf67ee0b60c93b4e66ee7111d4c5f1 commit 1e09ad4bcecf67ee0b60c93b4e66ee7111d4c5f1 Author: Mikael Urankar <mikael@FreeBSD.org> AuthorDate: 2023-07-10 08:28:27 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2023-07-10 10:13:02 +0000 devel/android-tools: Remove unused variable This is causing -Werror failures with recent Clang builds. PR: 270714 Submitted by: Masachika ISHIZUKA ...ch-vendor_boringssl_crypto_x509_t__x509.c (new) | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+)
thanks!