On 08/30/14 15:37, Colin Percival wrote: > On 08/30/14 14:04, Frederick Akalin wrote: >> ../libcperciva/datastruct/ptrheap.c:7:1: error: unused function >> 'ptrlist_resize' [-Werror,-Wunused-function] >> >> $ cc --version >> Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) >> Target: x86_64-apple-darwin13.3.0 >> Thread model: posix > > Ah, I'm using clang 3.3 on my development box; clang34 does indeed produce > this warning on FreeBSD. Interestingly the warning does not show up when > compiling code which includes sysendian.h, which also has lots of static > inline functions which are mostly unused... I'll see if I can find some > clang people to explain what's going on here.
Looking at the LLVM source repository, it seems that this was fixed a few months ago, but after clang 3.4 was released. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid