* config.guess: Disable SC2154 and SC2172 Shellcheck warnings.

* Makefile (shellcheck): Don't disable SC2172 globally.
This commit is contained in:
Ben Elliston
2018-07-13 21:37:46 +10:00
parent 30d53fc428
commit a4b36a6939
3 changed files with 9 additions and 2 deletions

4
config.guess vendored
View File

@ -2,7 +2,7 @@
# Attempt to guess a canonical system name.
# Copyright 1992-2018 Free Software Foundation, Inc.
timestamp='2018-07-12'
timestamp='2018-07-13'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@ -95,6 +95,7 @@ fi
# Portable tmp directory creation inspired by the Autoconf team.
tmp=
# shellcheck disable=SC2172
trap 'test -z "$tmp" || rm -fr "$tmp"' 1 2 13 15
trap 'exitcode=$?; test -z "$tmp" || rm -fr "$tmp"; exit $exitcode' 0
@ -1359,6 +1360,7 @@ EOF
# "uname -m" is not consistent, so use $cputype instead. 386
# is converted to i386 for consistency with other x86
# operating systems.
# shellcheck disable=SC2154
if test "$cputype" = 386; then
UNAME_MACHINE=i386
else