Re: [RFC] clang, posix: bypass static assert that does not compile with Clang

2018-10-09 Thread Sebastian Huber
On 08/10/2018 16:07, Daniel Hellstrom wrote: This static assertion ensures that POSIX_SEMAPHORE_VALIDATE_OBJECT() rejects semaphore pointers with a SEM_FAILED value. We could change this macro to test also for SEM_FAILED, but it would result in code like this if (sem == 0 (aka NULL) || sem

Re: [RFC] clang, posix: bypass static assert that does not compile with Clang

2018-10-08 Thread Daniel Hellstrom
Daniel Hellstrom Software Section Head Cobham Gaisler T : +46 (0) 31 775 8657 F : +46 (0) 31 421407 daniel.hellst...@gaisler.com Cobham Gaisler AB, Kungsgatan 12, SE-411 19, GĂ–TEBORG, Sweden. +46 (0) 31 775 8650, www.cobham.com/gaisler Please consider the environment before printing this email

Re: [RFC] clang, posix: bypass static assert that does not compile with Clang

2018-10-05 Thread Sebastian Huber
On 05/10/2018 08:57, Daniel Hellstrom wrote: From: Jacob Hansen This commits bypasses a static assert when using the Clang compiler. This is done as the static assertion does not compile with Clang ("static_assert expression is not an integral constant expression"). I am not sure this static a

[RFC] clang, posix: bypass static assert that does not compile with Clang

2018-10-04 Thread Daniel Hellstrom
From: Jacob Hansen This commits bypasses a static assert when using the Clang compiler. This is done as the static assertion does not compile with Clang ("static_assert expression is not an integral constant expression"). I am not sure this static assertion makes sense at all. SEM_FAILED is used