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:
parent
6a8326ff1e
commit
35691d21d8
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ enum control_method {
|
|||
|
||||
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) {
|
||||
case TIMEOUT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue