Skip to content

Commit

Permalink
nest pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
Vighnesh-V committed Oct 11, 2024
1 parent 848fa0b commit c9ff5d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Analysis/src/Differ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -947,12 +947,16 @@ std::vector<std::pair<TypeId, TypeId>>::const_reverse_iterator DifferEnvironment

DifferResult diff(TypeId ty1, TypeId ty2)
{

#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif

DifferEnvironment differEnv{ty1, ty2, std::nullopt, std::nullopt};
#if defined(__GNUC__)
#pragma GCC diagnostic pop

#endif

return diffUsingEnv(differEnv, ty1, ty2);
}

Expand Down

0 comments on commit c9ff5d1

Please sign in to comment.