diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24a763b7..dbd6a495 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: | diff --git a/Analysis/src/ConstraintGraphBuilder.cpp b/Analysis/src/ConstraintGraphBuilder.cpp index 600b6d23..d41c7772 100644 --- a/Analysis/src/ConstraintGraphBuilder.cpp +++ b/Analysis/src/ConstraintGraphBuilder.cpp @@ -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: may be used uninitialized + std::optional none = std::nullopt; + expectedType = none; } std::vector argTypes;