Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings on imgui on compilation #111

Open
saveman71 opened this issue Dec 13, 2017 · 1 comment
Open

Warnings on imgui on compilation #111

saveman71 opened this issue Dec 13, 2017 · 1 comment

Comments

@saveman71
Copy link
Member

Currently on dev we have the following warnings displayed:

/home/arch/tmp/Lugdunum/thirdparty/imgui/src/imgui_draw.cpp: In function ‘bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas*)’:
/home/arch/tmp/Lugdunum/thirdparty/imgui/src/imgui_draw.cpp:90:38: warning: ‘spc.stbtt_pack_context::nodes’ may be used uninitialized in this function [-Wmaybe-uninitialized]
 #define STBTT_free(x,u)    ((void)(u), ImGui::MemFree(x))
                                      ^
/home/arch/tmp/Lugdunum/thirdparty/imgui/src/imgui_draw.cpp:1391:24: note: ‘spc.stbtt_pack_context::nodes’ was declared here
     stbtt_pack_context spc;
                        ^~~
In file included from /home/arch/tmp/Lugdunum/thirdparty/imgui/src/imgui_draw.cpp:98:0:
/home/arch/tmp/Lugdunum/thirdparty/imgui/include/stb_truetype.h:3629:25: warning: ‘spc.stbtt_pack_context::padding’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             stbrp_coord pad = (stbrp_coord) spc->padding;
                         ^~~
/home/arch/tmp/Lugdunum/thirdparty/imgui/src/imgui_draw.cpp:1391:24: note: ‘spc.stbtt_pack_context::padding’ was declared here
     stbtt_pack_context spc;
                        ^~~
/home/arch/tmp/Lugdunum/thirdparty/imgui/src/imgui_draw.cpp:1391:24: warning: ‘spc.stbtt_pack_context::stride_in_bytes’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/arch/tmp/Lugdunum/thirdparty/imgui/src/imgui_draw.cpp:1461:25: warning: ‘spc.stbtt_pack_context::pack_info’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         stbrp_pack_rects((stbrp_context*)spc.pack_info, tmp.Rects, n);
         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Would be nice to get rid of them somehow, and to invetigate if we can do something about it upstream.

@ebachard
Copy link

ebachard commented May 9, 2018

Maybe : ocornut/imgui#1445 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants