There are already quote a few potential bugs. We can also set up a coverity scan, but that requires manual intervention. This static analysis is automatic.
I also built the packages on travis with clang, which has different warnings than gcc - and there were actually too many warnings that the build had to stop. That might be something to look at if you're interested in cleaning up some code -- try building librecad with clang and see what happens.