On Tue, 26 Jul 2022 10:37:25 +0200 Paolo Bonzini <pbonzini@xxxxxxxxxx> wrote: > Reported by Travis CI: > > /home/travis/build/kvm-unit-tests/kvm-unit-tests/lib/s390x/fault.c:43:56: error: static_assert with no message is a C++17 extension [-Werror,-Wc++17-extensions] > _Static_assert(ARRAY_SIZE(prot_str) == PROT_NUM_CODES); > ^ > , "" > 1 error generated. > make: *** [<builtin>: lib/s390x/fault.o] Error 1 > > Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx> Reviewed-by: Claudio Imbrenda <imbrenda@xxxxxxxxxxxxx> > --- > lib/s390x/fault.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/s390x/fault.c b/lib/s390x/fault.c > index 1cd6e26..a882d5d 100644 > --- a/lib/s390x/fault.c > +++ b/lib/s390x/fault.c > @@ -40,7 +40,7 @@ static void print_decode_pgm_prot(union teid teid) > "LAP", > "IEP", > }; > - _Static_assert(ARRAY_SIZE(prot_str) == PROT_NUM_CODES); > + _Static_assert(ARRAY_SIZE(prot_str) == PROT_NUM_CODES, "ESOP2 prot codes"); > int prot_code = teid_esop2_prot_code(teid); > > printf("Type: %s\n", prot_str[prot_code]);