refactor scan-build checker flags into a variable and reuse it several times