Skip to content

Commit

Permalink
greenhills: fix the enumerated type mixed using warning
Browse files Browse the repository at this point in the history
CC:  obstack/lib_obstack_printf.c "mmap/fs_rammap.c", line 126: warning apache#188-D: enumerated type mixed with
          another type
    enum mm_map_type_e type = (uintptr_t)entry->priv.p & 3;
                              ^

Signed-off-by: guoshichao <[email protected]>
  • Loading branch information
guoshichao authored and Jan Medek committed Sep 19, 2024
1 parent 352d107 commit b6d7312
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/mmap/fs_rammap.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ static int unmap_rammap(FAR struct task_group_s *group,
size_t length)
{
FAR struct file *filep = (FAR void *)((uintptr_t)entry->priv.p & ~3);
enum mm_map_type_e type = (uintptr_t)entry->priv.p & 3;
enum mm_map_type_e type =
(enum mm_map_type_e)((uintptr_t)entry->priv.p & 3);
FAR void *newaddr = NULL;
off_t offset;
int ret = OK;
Expand Down

0 comments on commit b6d7312

Please sign in to comment.