From 6dc7e3edc41b0ed5b88020b555c91d861eef956b Mon Sep 17 00:00:00 2001 From: dfink Date: Fri, 10 Jun 2022 11:37:20 -0400 Subject: Discard -Xpreprocessor and following argument for remote compilation, as this switch is recognized by gcc and clang, and clang warns about unused command-line args: -Wunused-command-line-argument warning --- src/strip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/strip.c b/src/strip.c index 1d6a591..4a1af52 100644 --- a/src/strip.c +++ b/src/strip.c @@ -93,7 +93,8 @@ int dcc_strip_local_args(char **from, char ***out_argv) || str_equal("-iwithprefix", from[from_i]) || str_equal("-isystem", from[from_i]) || str_equal("-iwithprefixbefore", from[from_i]) - || str_equal("-idirafter", from[from_i])) { + || str_equal("-idirafter", from[from_i]) + || str_equal("-Xpreprocessor", from[from_i])) { /* skip next word, being option argument */ if (from[from_i+1]) from_i++; -- cgit v1.2.1