Skip to content

Commit

Permalink
[DFSAN] Silence parameter 'va_labels' set but not used warning (NFC)
Browse files Browse the repository at this point in the history
/data/llvm-project/compiler-rt/lib/dfsan/dfsan_custom.cpp:2546:37: error: parameter 'va_labels' set but not used [-Werror,-Wunused-but-set-parameter]
                       dfsan_label *va_labels, dfsan_label *ret_label,
                                    ^
1 error generated.
  • Loading branch information
DamonFool committed Sep 6, 2023
1 parent 8dbcf8e commit 1438544
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler-rt/lib/dfsan/dfsan_custom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2754,6 +2754,7 @@ static int scan_buffer(char *str, size_t size, const char *fmt,
formatter.str_off += retval;
}

(void)va_labels; // Silence unused-but-set-parameter warning
*ret_label = 0;
if (ret_origin)
*ret_origin = 0;
Expand Down

0 comments on commit 1438544

Please sign in to comment.