I set up the travis scripts to do an optional build with clang-3.6 and the clang static analyzer version 3.6:
https://travis-ci.org/OpenMW/openmw/jobs/55065093
There are probably a couple of false positives, but this could be a way for us to constantly be checking against newer warnings or other things the static analyzer can see. Right now, it doesn't find any problems - but some clang warnings are there if people are interested
This is also a way for us to test c++11 on travis-ci, since we can now pull in a compiler that supports it on ubuntu precise. Code coverage doesn't work, which is a bug from trying to do this on the old ubuntu 12.04
I'll clean the branch up to be one clean commit and do a real pull request.