Created attachment 153631 [details] Disable -Wunused-local-typedef for clang 3.6.0 and higher During the exp-run in bug 197395, it was found that www/mod_spdy gives errors with clang 3.6.0: http://package18.nyi.freebsd.org/data/headamd64PR197395-default/2015-02-27_12h37m16s/logs/errors/mod_spdy-0.9.4.1.log These errors are -Werror warnings about unused local typedefs, which are new warnings in clang 3.6.0 and higher. As these warnings are entirely benign, and it causes some churn to fix them all, the attached patch simply suppresses them for clang 3.6.0 and higher.
The proposed patch fails to build on 8.4 system and since I dont have a fix for that, I am returning this PR to the pool.
(In reply to Bartek Rutkowski from comment #1) What is the failure?
Currently it fails on 9 like that: [00:00:18] ====>> Loading MOVED [00:00:18] ====>> Calculating ports order and dependencies "Makefile", line 87: Malformed conditional (${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 36) "Makefile", line 89: if-less endif make: fatal errors encountered -- cannot continue [00:00:19] ====>> Error: Error getting PKGNAME for www/mod_spdy [00:00:19] ====>> Error: Fatal errors encountered calculating dependencies [00:00:19] ====>> Cleaning up
A commit references this bug: Author: danfe Date: Fri Oct 23 15:23:36 UTC 2015 New revision: 400029 URL: https://svnweb.freebsd.org/changeset/ports/400029 Log: - Suppress warnings about unused local typedefs for Clang 3.6.0 and higher - Convert explicit dependency on `devel/libexecinfo' to USES=execinfo - Wrap one overly long line while I'm here PR: 198112 Submitted by: dim Changes: head/www/mod_spdy/Makefile
Committed along with other minor changes as ports r400029, thanks Dimitry!