diff --git a/CMakeLists.txt b/CMakeLists.txt index 5194776..08a3a48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -137,10 +137,15 @@ add_library( ) target_include_directories( - sanitizer-plugin PUBLIC + sanitizer-plugin PRIVATE "${LLVM_INCLUDE_DIRS};${CLANG_INCLUDE_DIRS}" ) +target_compile_options( + sanitizer-plugin PRIVATE + -Wall -Werror +) + add_library(vt::lib::sanitizer_rt ALIAS sanitizer_rt) target_compile_definitions( diff --git a/src/plugin/plugin.cc b/src/plugin/plugin.cc index 26836c3..a8809ff 100644 --- a/src/plugin/plugin.cc +++ b/src/plugin/plugin.cc @@ -64,7 +64,7 @@ void printWarning(FieldDecl const* field_decl) { void SanitizerMatcher::run(const MatchFinder::MatchResult &result) { auto record = result.Nodes.getNodeAs("record"); - auto method = result.Nodes.getNodeAs("method"); + // auto method = result.Nodes.getNodeAs("method"); auto binary_op = result.Nodes.getNodeAs("binary"); // llvm::errs() << "\nProcessing serialized fields [" << record->getQualifiedNameAsString() << "]\n";