Immediate-Mode-UI / Immediate-Mode-UI/Nuklear
warning C5054: operator '|': deprecated between enumerations of different types
- Dominant language
- C
- Stars
- 11.4k
- Forks
- 686
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 3
Description
```
1>F:\my_games\dviglo2d\repo\third_party\external\nuklear\repo\nuklear.h(3719,37): warning C5054: operator '|': deprecated between enumerations of different types
1>(compiling source file '../../../repo/apps/nuklear_demo/src/app.cpp')
1>F:\my_games\dviglo2d\repo\third_party\external\nuklear\repo\nuklear.h(5622,47): warning C5054: operator '|': deprecated between enumerations of different types
1>(compiling source file '../../../repo/apps/nuklear_demo/src/app.cpp')
1>F:\my_games\dviglo2d\repo\third_party\external\nuklear\repo\nuklear.h(5623,42): warning C5054: operator '|': deprecated between enumerations of different types
1>(compiling source file '../../../repo/apps/nuklear_demo/src/app.cpp')
1>F:\my_games\dviglo2d\repo\third_party\external\nuklear\repo\nuklear.h(5715,46): warning C5054: operator '|': deprecated between enumerations of different types
1>(compiling source file '../../../repo/apps/nuklear_demo/src/app.cpp')
```
```
NK_EDIT_FIELD = NK_EDIT_SIMPLE|NK_EDIT_SELECTABLE|NK_EDIT_CLIPBOARD,
```
```
NK_PANEL_SET_POPUP = NK_PANEL_SET_NONBLOCK|NK_PANEL_POPUP,
NK_PANEL_SET_SUB = NK_PANEL_SET_POPUP|NK_PANEL_GROUP
```
```
NK_WINDOW_NOT_INTERACTIVE = NK_WINDOW_ROM|NK_WINDOW_NO_INPUT,
```
Contributor guide
Research direction
Inspect third_party/external/nuklear/repo/nuklear.h at lines 3719, 5622-5623, and 5715, using the warning output as the starting point. Rebuild apps/nuklear_demo/src/app.cpp with the relevant Microsoft compiler and confirm that the C5054 warnings no longer appear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100