Re: [PATCH v17.1 01/14] helpers: Move static_assert definition to shared

2018-07-09 Thread Pekka Paalanen
On Mon, 9 Jul 2018 15:27:46 +0100 Daniel Stone wrote: > Collect the fallback definitions of static_assert() from desktop-shell > and the test shell, and move them to helpers.h. This allows code > throughout the tree to use static_assert() for build-time assertions, > where it is supported by the

[PATCH v17.1 01/14] helpers: Move static_assert definition to shared

2018-07-09 Thread Daniel Stone
Collect the fallback definitions of static_assert() from desktop-shell and the test shell, and move them to helpers.h. This allows code throughout the tree to use static_assert() for build-time assertions, where it is supported by the compiler. As GCC goes out of its way to only add static_assert(