tests: thread_apis: fix cast to smaller integer type

Clang 12.0.0 complains about
"cast to smaller integer type 'enum control_method' from 'void *'
[-Werror,-Wvoid-pointer-to-enum-cast]".
Cast it to intptr_t type first.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
Johann Fischer 2021-12-03 09:32:28 +01:00 committed by Carles Cufí
commit 35691d21d8

View file

@ -307,7 +307,7 @@ enum control_method {
void join_entry(void *p1, void *p2, void *p3) void join_entry(void *p1, void *p2, void *p3)
{ {
enum control_method m = (enum control_method)p1; enum control_method m = (enum control_method)(intptr_t)p1;
switch (m) { switch (m) {
case TIMEOUT: case TIMEOUT: