Fix cppcheck and clang check. The brackets in main fix a never-executed issue in clang-check.