Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NSInterfaceStyle: Fix void-pointer-to-enum-cast warning (#248)
Cast to `uintptr_t` before casting to `enum` to suppress warning. ``` NSInterfaceStyle.m:134:15: warning: cast to smaller integer type 'NSInterfaceStyle' from 'void *' [-Wvoid-pointer-to-enum-cast] style = (NSInterfaceStyle)NSMapGet(styleMap, key); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NSInterfaceStyle.m:234:24: warning: cast to smaller integer type 'NSInterfaceStyle' from 'void *' [-Wvoid-pointer-to-enum-cast] if (newStyle != ((NSInterfaceStyle)val)) ^~~~~~~~~~~~~~~~~~~~~ ```
- Loading branch information