mirror of
https://github.com/luau-lang/luau.git
synced 2025-01-19 17:28:06 +00:00
nest pragma
This commit is contained in:
parent
848fa0be8e
commit
c9ff5d1c0a
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue