[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
_Static_assert in fpu.c should also take a string
From: |
Andrea G. Monaco |
Subject: |
_Static_assert in fpu.c should also take a string |
Date: |
Wed, 23 Dec 2020 18:54:47 +0100 |
Hello,
I'm trying to compile GNU Mach but it aborts because the file
i386/i386/fpu.c contains these calls
_Static_assert(sizeof(struct i386_xfp_xstate_header) == 8*8);
_Static_assert(sizeof(struct i386_xfp_save) == 512 + 8*8);
which are the only two calls two _Static_assert I found with grep in all
GNU Mach.
But _Static_assert requires another argument, an error string for when
the assertion fails.
(That's at least until C2X, which according to Wikipedia could introduce
one-argument _Static_assert https://en.wikipedia.org/wiki/C2x)
Is that a syntax error?
Warmly,
Andrea Monaco
- _Static_assert in fpu.c should also take a string,
Andrea G. Monaco <=