Răsfoiți Sursa

Fixed GCC warnings.

bkaradzic 12 ani în urmă
părinte
comite
6403d9b5a6

+ 1 - 2
3rdparty/stb_truetype/stb_truetype.h

@@ -915,7 +915,6 @@ int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint)
       // now decrement to bias correctly to find smallest
       search -= 2;
       while (entrySelector) {
-         stbtt_uint16 start, end;
          searchRange >>= 1;
          start = ttUSHORT(data + search + 2 + segcount*2 + 2);
          end = ttUSHORT(data + search + 2);
@@ -2062,4 +2061,4 @@ int stbtt_FindMatchingFont(const unsigned char *font_collection, const char *nam
    }
 }
 
-#endif // STB_TRUETYPE_IMPLEMENTATION
+#endif // STB_TRUETYPE_IMPLEMENTATION

+ 0 - 1
examples/09-hdr/hdr.cpp

@@ -14,7 +14,6 @@
 #include "../common/processevents.h"
 #include "../common/imgui/imgui.h"
 
-#include <stdio.h>
 #include <string.h>
 #include <vector>
 #include <string>

+ 6 - 0
examples/common/processevents.h

@@ -8,6 +8,12 @@
 
 struct MouseState
 {
+	MouseState()
+		: m_mx(0)
+		, m_my(0)
+	{
+	}
+
 	uint32_t m_mx;
 	uint32_t m_my;
 	uint8_t m_buttons[entry::MouseButton::Count];