about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-10-24 19:53:07 +0200
committervanhauser-thc <vh@thc.org>2021-10-24 19:53:07 +0200
commit0348ede4bc47264473efdac86415b9c805bdda40 (patch)
tree99f85bdbb5d7bd11373ef3c333f28645f1e441e6 /src
parent0f49463edec0c019bd098659fa74c58a2d28c439 (diff)
downloadafl++-0348ede4bc47264473efdac86415b9c805bdda40.tar.gz
fix gcc warning
Diffstat (limited to 'src')
-rw-r--r--src/afl-cc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c
index e49addc4..77407a98 100644
--- a/src/afl-cc.c
+++ b/src/afl-cc.c
@@ -1007,7 +1007,11 @@ static void edit_params(u32 argc, char **argv, char **envp) {
   }
 
   // prevent unnecessary build errors
-  cc_params[cc_par_cnt++] = "-Wno-unused-command-line-argument";
+  if (compiler_mode != GCC_PLUGIN && compiler_mode != GCC) {
+
+    cc_params[cc_par_cnt++] = "-Wno-unused-command-line-argument";
+
+  }
 
   if (preprocessor_only || have_c) {