Skip to content

Commit

Permalink
libcextract: ArgvParser: Disable Wduplicate-decl-specifier error
Browse files Browse the repository at this point in the history
This happens on recent kernel tree due to issues with LLVM. As we don't
need any backends and only need to parse the source code we can disable
the warning and move on.

For more information about the issue take a look into
ClangBuiltLinux/linux#2013 and
llvm/llvm-project#93449.

Signed-off-by: Marcos Paulo de Souza <[email protected]>
  • Loading branch information
marcosps authored and giulianobelinassi committed Aug 16, 2024
1 parent 4159d51 commit ea42b8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libcextract/ArgvParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ void ArgvParser::Insert_Required_Parameters(void)
"-Wno-unused-function", // May happen when trying to extract a static function.
"-Wno-unused-variable", // Passes may instroduce unused variables later removed.
"-fno-builtin", // clang interposes some glibc functions and then it fails to find the declaration of them.
"-Wno-duplicate-decl-specifier", // Disabled due to kernel issues. See more
// at https://github.com/ClangBuiltLinux/linux/issues/2013
// and https://github.com/llvm/llvm-project/issues/93449
};

for (const char *arg : priv_args) {
Expand Down

0 comments on commit ea42b8a

Please sign in to comment.