summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteve MacLean <Steve.MacLean@Microsoft.com>2020-06-11 14:48:16 -0400
committerDave Watson <dade.watson@gmail.com>2020-06-18 13:36:48 -0700
commitcb4a36935669a3c7f34b065aa8aa9953f506c758 (patch)
tree63a3adf9fd8465b6dd28954b7c9933094cb95e7f /src
parent4b2015fbd8a6a4ec4dd4bcbc2413738cec89b7aa (diff)
downloadlibunwind-cb4a36935669a3c7f34b065aa8aa9953f506c758.tar.gz
Fix placement of alignas() specifier
The alignment specifier must appear before the typename i.e. clang9 refused to compile uint8_t alignas(MAX_ALIGN) __reserved[128]; but accepted alignas(MAX_ALIGN) uint8_t __reserved[128];
Diffstat (limited to 'src')
-rw-r--r--src/mi/mempool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mi/mempool.c b/src/mi/mempool.c
index 3e8da676..7c5d27d0 100644
--- a/src/mi/mempool.c
+++ b/src/mi/mempool.c
@@ -41,7 +41,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
# define MAX_ALIGN MAX_ALIGN_(sizeof (long double))
#endif
-static char alignas(MAX_ALIGN) sos_memory[SOS_MEMORY_SIZE];
+static alignas(MAX_ALIGN) char sos_memory[SOS_MEMORY_SIZE];
static _Atomic size_t sos_memory_freepos = 0;
static size_t pg_size;