Skip to content

Instantly share code, notes, and snippets.

@emoon
Created February 2, 2015 07:46
Show Gist options
  • Save emoon/e8c305c588fb0d28ebf7 to your computer and use it in GitHub Desktop.
Save emoon/e8c305c588fb0d28ebf7 to your computer and use it in GitHub Desktop.
/Users/danielcollin/code/prodbg/src/external/imgui/imgui.cpp:6527:1: error: function 'GetDefaultFontData' could be declared with attribute 'noreturn' [-Werror,-Wmissing-noreturn]
{
^
/Users/danielcollin/code/prodbg/src/external/imgui/imgui.cpp:6678:20: error: implicit conversion loses integer precision: 'int' to 'stbrp_coord' (aka 'unsigned short') [-Werror,-Wconversion]
extra_rect.w = (int)TEX_ATLAS_SIZE.x;
~ ^~~~~~~~~~~~~~~~~~~~~
/Users/danielcollin/code/prodbg/src/external/imgui/imgui.cpp:6679:20: error: implicit conversion loses integer precision: 'int' to 'stbrp_coord' (aka 'unsigned short') [-Werror,-Wconversion]
extra_rect.h = (int)TEX_ATLAS_SIZE.y;
~ ^~~~~~~~~~~~~~~~~~~~~
/Users/danielcollin/code/prodbg/src/external/imgui/imgui.cpp:8748:23: error: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Werror,-Wshorten-64-to-32]
return (s2 << 16) + s1;
~~~~~~ ~~~~~~~~~~~^~~~
@ocornut
Copy link

ocornut commented Feb 2, 2015

The first one is because your assert code is probably stopping in an infinite loop ?
This function is obsolete, I am leaving it aronud to provide instructions to the program but may just remove it soon.

@ocornut
Copy link

ocornut commented Feb 2, 2015

Fixed the 3 others. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment