diff options
author | dfink <dfink@mathworks.com> | 2022-06-10 11:37:20 -0400 |
---|---|---|
committer | dfink <dfink@mathworks.com> | 2022-06-10 11:37:20 -0400 |
commit | 6dc7e3edc41b0ed5b88020b555c91d861eef956b (patch) | |
tree | c637fc156c731b54c826b3910cc7ec1fea58cffb | |
parent | 298bdcf5e4ae296a74e9c653205eb5f8148e6d33 (diff) | |
download | distcc-git-6dc7e3edc41b0ed5b88020b555c91d861eef956b.tar.gz |
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
-rw-r--r-- | src/strip.c | 3 |
1 files changed, 2 insertions, 1 deletions
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++; |