aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStefano Garzarella <sgarzare@redhat.com>2020-08-21 22:35:58 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-08-21 17:03:11 -0400
commitc44a33e2fe0688b323a5a8c76852f286fc02be9f (patch)
treeba22d635e0b7a56ea50f333a0c5a46ba4e6cdd4e /Makefile
parent6dd93c2bde99ab4ec066d696b121fdc0188d9856 (diff)
configure: silence 'shift' error message in version_ge()
If there are less than 2 arguments in version_ge(), the second 'shift' prints this error: ../configure: line 232: shift: shift count out of range As Eric suggested, we can use 'shift ${2:+2}' which works out to 'shift 2' if $2 is set, or 'shift' (implicitly shift 1) if $2 is not set. This patch replaces both 'shift; shift' occurrences in version_ge() with 'shift ${2:+2}'. Suggested-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200821203558.10338-1-sgarzare@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions