aboutsummaryrefslogtreecommitdiff
path: root/llvm_mode
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2019-08-08 23:09:58 +0200
committerhexcoder- <heiko@hexco.de>2019-08-08 23:09:58 +0200
commit73d02f3a808903f02dd0b547e7db9ff00efdf6c5 (patch)
tree3e9d8773fa2f963a949d0cef380b4414bb940e92 /llvm_mode
parente1183be22ec38e180ec86737e204c5effbc1648b (diff)
downloadAFLplusplus-73d02f3a808903f02dd0b547e7db9ff00efdf6c5.tar.gz
fix some compiler warnings
Diffstat (limited to 'llvm_mode')
-rw-r--r--llvm_mode/Makefile2
-rw-r--r--llvm_mode/MarkNodes.cc2
-rw-r--r--llvm_mode/split-compares-pass.so.cc6
3 files changed, 4 insertions, 6 deletions
diff --git a/llvm_mode/Makefile b/llvm_mode/Makefile
index 1c661525..8331b662 100644
--- a/llvm_mode/Makefile
+++ b/llvm_mode/Makefile
@@ -48,7 +48,7 @@ ifdef AFL_TRACE_PC
endif
CXXFLAGS ?= -O3 -funroll-loops
-CXXFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign \
+CXXFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g \
-DVERSION=\"$(VERSION)\" -Wno-variadic-macros
CLANG_CFL = `$(LLVM_CONFIG) --cxxflags` -Wl,-znodelete -fno-rtti -fpic $(CXXFLAGS)
diff --git a/llvm_mode/MarkNodes.cc b/llvm_mode/MarkNodes.cc
index a156fccb..348dc264 100644
--- a/llvm_mode/MarkNodes.cc
+++ b/llvm_mode/MarkNodes.cc
@@ -193,7 +193,7 @@ namespace DominatorTree{
idom[now] = idom[idom[now]];
}
}
-}; // End of DominatorTree
+} // End of DominatorTree
std::vector<uint32_t> Visited, InStack;
std::vector<uint32_t> TopoOrder, InDeg;
diff --git a/llvm_mode/split-compares-pass.so.cc b/llvm_mode/split-compares-pass.so.cc
index c025628f..a74b60fa 100644
--- a/llvm_mode/split-compares-pass.so.cc
+++ b/llvm_mode/split-compares-pass.so.cc
@@ -495,14 +495,12 @@ bool SplitComparesTransform::runOnModule(Module &M) {
errs() << "Running split-compare-pass " << 64 << "\n";
splitCompares(M, 64);
- [[clang::fallthrough]];
- /* fallthrough */
+ [[clang::fallthrough]]; /*FALLTHRU*/ /* FALLTHROUGH */
case 32:
errs() << "Running split-compare-pass " << 32 << "\n";
splitCompares(M, 32);
- [[clang::fallthrough]];
- /* fallthrough */
+ [[clang::fallthrough]]; /*FALLTHRU*/ /* FALLTHROUGH */
case 16:
errs() << "Running split-compare-pass " << 16 << "\n";
splitCompares(M, 16);