aboutsummaryrefslogtreecommitdiff
path: root/util/coroutine-sigaltstack.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2022-07-20 16:26:28 +0100
committerPeter Maydell <peter.maydell@linaro.org>2022-07-26 13:40:44 +0100
commitd466d416ed51aa72d2bfde2e2b44293bf6d73472 (patch)
treeaed409d53c9d7f3219780ef139c2d1615a2dc31d /util/coroutine-sigaltstack.c
parent35a7a6fc5624b1df828d82f2dfa74d0e4188b3b2 (diff)
downloadqemu-d466d416ed51aa72d2bfde2e2b44293bf6d73472.zip
qemu-d466d416ed51aa72d2bfde2e2b44293bf6d73472.tar.gz
qemu-d466d416ed51aa72d2bfde2e2b44293bf6d73472.tar.bz2
configure: Add braces to clarify intent of $emu[[:space:]]
In shell script syntax, $var[something] is not special for variable expansion: $var is expanded. However, as it can look as if it were intended to be an array element access (the correct syntax for which is ${var[something]}), shellcheck recommends using explicit braces around ${var} to clarify the intended expansion. This fixes the warning: In ./configure line 2346: if "$target_ld" -verbose 2>&1 | grep -q "^[[:space:]]*$emu[[:space:]]*$"; then ^-- SC1087: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-id: 20220720152631.450903-3-peter.maydell@linaro.org
Diffstat (limited to 'util/coroutine-sigaltstack.c')
0 files changed, 0 insertions, 0 deletions