Skip to content

Commit e831f5b

Browse files
Ignore -Wfree-labels and -Wmissing-parameter-name
These two parameters -Wfree-labels and -Wmissing-parameter-name triggers a compilation error on glibc. Since its safe to ignore them because they are warnings, then do so. Signed-off-by: Giuliano Belinassi <gbelinassi@suse.de>
1 parent 19c1329 commit e831f5b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libcextract/ArgvParser.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ static const char *UnsupportedGCCArgs[] = {
5454
"-Wimplicit-fallthrough=",
5555
"-Wendif-labels",
5656
"-Wmissing-selector-name",
57+
"-Wfree-labels",
58+
"-Wmissing-parameter-name",
5759
};
5860

5961
ArgvParser::ArgvParser(int argc, char **argv)

libcextract/PrettyPrint.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ static void Attr_Order_Fix(Decl *decl)
3636
return;
3737

3838
if (decl->hasAttrs()) {
39-
const SourceManager &SM = decl->getASTContext().getSourceManager();
4039
AttrVec &Attrs = decl->getAttrs();
4140

4241
/* Clang always seems to insert the `asm` label last, but lets just swap

0 commit comments

Comments
 (0)