fixes lots of llvm warnings

This commit is contained in:
van Hauser
2020-08-14 12:06:00 +02:00
parent 9ff9ff2ad2
commit 5f0a9c90c8
8 changed files with 16 additions and 26 deletions

View File

@ -379,7 +379,9 @@ static void edit_params(u32 argc, char **argv, char **envp) {
if (instrument_mode == INSTRUMENT_PCGUARD) {
#if LLVM_VERSION_MAJOR >= 4
#if LLVM_VERSION_MAJOR > 4 || \
(LLVM_VERSION_MAJOR == 4 && \
(LLVM_VERSION_MINOR > 0 || LLVM_VERSION_PATCH >= 1))
cc_params[cc_par_cnt++] =
"-fsanitize-coverage=trace-pc-guard"; // edge coverage by default
#else