mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-12 12:50:51 +00:00
- Progress on https://github.com/termux/termux-packages/issues/23492 - Progress on https://github.com/termux/termux-packages/issues/11744 - Fix build with NDK r29 using `deprecated-literal-operator.patch` and `unused-variable.patch` - Convert all source code to LF before building for easier maintenance of patches using UNIX-like development systems
14 lines
668 B
Diff
14 lines
668 B
Diff
Prevents:
|
|
error: variable 'letParameter' set but not used
|
|
|
|
--- a/src/wiz/compiler/compiler.cpp
|
|
+++ b/src/wiz/compiler/compiler.cpp
|
|
@@ -5311,6 +5311,7 @@ namespace wiz {
|
|
auto& argument = arguments[i];
|
|
|
|
if (auto letParameter = parameter->tryGet<Definition::Let>()) {
|
|
+ (void)letParameter;
|
|
if (argument->info->context == EvaluationContext::RunTime) {
|
|
report->error("argument `" + parameter->name.toString() + "` is a `let` expression, so it cannot accept a run-time expression", argument->location);
|
|
}
|