Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarak committed Apr 30, 2024
1 parent a6bcf92 commit 55c6180
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/AST/Bounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class DeclBoundsFinder : public clang::DeclVisitor<DeclBoundsFinder>,
return invalid;
}

bool expect_braces = false;
bool expect_braces __attribute__((unused)) = false;
auto ret = invalid;
for (tok.Next(); tok; tok.Next()) {
switch (tok.Kind()) {
Expand Down
5 changes: 5 additions & 0 deletions lib/AST/Printer/NestedNameSpecifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
//
//===----------------------------------------------------------------------===//

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-conversion"
#pragma GCC diagnostic ignored "-Wimplicit-int-conversion"
#pragma GCC diagnostic ignored "-Wshorten-64-to-32"
#include <clang/AST/NestedNameSpecifier.h>
#pragma GCC diagnostic pop

#include "DeclStmtPrinter.h"

Expand Down

0 comments on commit 55c6180

Please sign in to comment.