mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-27 00:53:33 +00:00
Unused variable compiler warning (pairSetCount) #1642
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#1642
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi! Not really an issue, more of a wish ... anyhow, there is an annoying compiler warning when processing stb_truetype.h:
stb_truetype.h:2454:42: warning: unused variable ‘pairSetCount’ [-Wunused-variable]
stbtt_uint16 pairSetCount = ttUSHORT(table + 8);
caused by the fact that this is only used in an assert; I just added a
STBTT__NOTUSED(pairSetCount);after theSTBTT_assert(coverageIndex < pairSetCount);to get rid of it.Fixed, thanks! I'll make a pull request on the original repo as well.