string: Fix string/tst-memmove-overflow to compile with GCC 7
authorFlorian Weimer <fweimer@redhat.com>
Thu, 14 May 2020 10:12:29 +0000 (12:12 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 14 May 2020 16:51:49 +0000 (18:51 +0200)
commita4a351924575879fd96bf470f6340157ed560186
treeae84c6f1223e59d5e262854bff50ede62446dde7
parent98b2dc7e208772e7088c63e3031f75c2b92548b4
string: Fix string/tst-memmove-overflow to compile with GCC 7

GCC 8 relaxed what kind of expressions can be used in initializers,
and the previous use of static const variables relied on that.  Switch
to wide (non-int) enum constants instead, which is another GCC
extension that is more widely implemented.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
string/tst-memmove-overflow.c