diff options
author | vanhauser-thc <vh@thc.org> | 2021-10-24 19:53:07 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-10-24 19:53:07 +0200 |
commit | 0348ede4bc47264473efdac86415b9c805bdda40 (patch) | |
tree | 99f85bdbb5d7bd11373ef3c333f28645f1e441e6 /src | |
parent | 0f49463edec0c019bd098659fa74c58a2d28c439 (diff) | |
download | afl++-0348ede4bc47264473efdac86415b9c805bdda40.tar.gz |
fix gcc warning
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-cc.c | 6 |
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) { |