]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix GCC10 issue in guest_s390_defs.h typedef enum type s390x_vec_op_t.
authorMark Wielaard <mark@klomp.org>
Thu, 23 Jan 2020 20:30:59 +0000 (21:30 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 23 Jan 2020 20:30:59 +0000 (21:30 +0100)
GCC10 defaults to -fno-common which produces this error:

  guest_s390_defs.h:291: multiple definition of `s390x_vec_op_t

This is because GCC10 detects there are multiple definitions of the
variable s390x_vec_op_t. We don't want to define a variable though.
We had wanted to define a type (one that currently isn't used).
Fix this by making it a typedef enum.

https://bugzilla.redhat.com/show_bug.cgi?id=1794482

VEX/priv/guest_s390_defs.h

index b9f038aaab582388de93a395f5fe068d9366c967..9f93cff193f2e2b0bb1ffa5aa77c9f7abad02e4a 100644 (file)
@@ -261,7 +261,7 @@ extern ULong last_execute_target;
 /* Vector operatons passed to s390x_dirtyhelper_vec_op(...) helper.
    Please don't change ordering of elements and append new items
    before  S390_VEC_OP_LAST. */
-enum {
+typedef enum {
    S390_VEC_OP_INVALID = 0,
    S390_VEC_OP_VPKS = 1,
    S390_VEC_OP_VPKLS = 2,