tra: fix some Apple clang warnings