mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-12 21:10:37 +00:00
Work-around for gcc
This commit is contained in:
parent
f10b294d62
commit
6cd507dff0
2 changed files with 3 additions and 2 deletions
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
@ -27,7 +27,6 @@ jobs:
|
|||
- uses: actions/checkout@v1
|
||||
- name: make tests
|
||||
run: |
|
||||
g++ --version
|
||||
make -j2 config=sanitize werror=1 native=1 luau-tests
|
||||
- name: run tests
|
||||
run: |
|
||||
|
|
|
@ -1807,7 +1807,9 @@ ConstraintGraphBuilder::FunctionSignature ConstraintGraphBuilder::checkFunctionS
|
|||
signatureScope->privateTypePackBindings[name] = g.tp;
|
||||
}
|
||||
|
||||
expectedType.reset();
|
||||
// Local variable works around an odd gcc 11.3 warning: <anonymous> may be used uninitialized
|
||||
std::optional<TypeId> none = std::nullopt;
|
||||
expectedType = none;
|
||||
}
|
||||
|
||||
std::vector<TypeId> argTypes;
|
||||
|
|
Loading…
Reference in a new issue