Skip to content

Instantly share code, notes, and snippets.

@emoon
Created September 25, 2014 18:23
Show Gist options
  • Save emoon/58fcecc40f340d16c8cd to your computer and use it in GitHub Desktop.
Save emoon/58fcecc40f340d16c8cd to your computer and use it in GitHub Desktop.
./../imgui.cpp:5410:22: warning: comparison of constant 194 with expression of type 'const char' is always true
[-Wtautological-constant-out-of-range-compare]
if (*str < 0xc2) return -1;
~~~~ ^ ~~~~
../../imgui.cpp:5420:22: warning: comparison of constant 224 with expression of type 'const char' is always false
[-Wtautological-constant-out-of-range-compare]
if (*str == 0xe0 && (str[1] < 0xa0 || str[1] > 0xbf)) return -1;
~~~~ ^ ~~~~
../../imgui.cpp:5420:41: warning: comparison of constant 160 with expression of type 'const char' is always true
[-Wtautological-constant-out-of-range-compare]
if (*str == 0xe0 && (str[1] < 0xa0 || str[1] > 0xbf)) return -1;
~~~~~~ ^ ~~~~
../../imgui.cpp:5420:58: warning: comparison of constant 191 with expression of type 'const char' is always false
[-Wtautological-constant-out-of-range-compare]
if (*str == 0xe0 && (str[1] < 0xa0 || str[1] > 0xbf)) return -1;
~~~~~~ ^ ~~~~
../../imgui.cpp:5421:22: warning: comparison of constant 237 with expression of type 'const char' is always false
[-Wtautological-constant-out-of-range-compare]
if (*str == 0xed && str[1] > 0x9f) return -1; // str[1] < 0x80 is checked below
~~~~ ^ ~~~~
../../imgui.cpp:5421:40: warning: comparison of constant 159 with expression of type 'const char' is always false
[-Wtautological-constant-out-of-range-compare]
if (*str == 0xed && str[1] > 0x9f) return -1; // str[1] < 0x80 is checked below
~~~~~~ ^ ~~~~
../../imgui.cpp:5433:22: warning: comparison of constant 244 with expression of type 'const char' is always false
[-Wtautological-constant-out-of-range-compare]
if (*str > 0xf4) return -1;
~~~~ ^ ~~~~
../../imgui.cpp:5434:22: warning: comparison of constant 240 with expression of type 'const char' is always false
[-Wtautological-constant-out-of-range-compare]
if (*str == 0xf0 && (str[1] < 0x90 || str[1] > 0xbf)) return -1;
~~~~ ^ ~~~~
../../imgui.cpp:5434:41: warning: comparison of constant 144 with expression of type 'const char' is always true
[-Wtautological-constant-out-of-range-compare]
if (*str == 0xf0 && (str[1] < 0x90 || str[1] > 0xbf)) return -1;
~~~~~~ ^ ~~~~
../../imgui.cpp:5434:58: warning: comparison of constant 191 with expression of type 'const char' is always false
[-Wtautological-constant-out-of-range-compare]
if (*str == 0xf0 && (str[1] < 0x90 || str[1] > 0xbf)) return -1;
~~~~~~ ^ ~~~~
../../imgui.cpp:5435:22: warning: comparison of constant 244 with expression of type 'const char' is always false
[-Wtautological-constant-out-of-range-compare]
if (*str == 0xf4 && str[1] > 0x8f) return -1; // str[1] < 0x80 is checked below
~~~~ ^ ~~~~
../../imgui.cpp:5435:40: warning: comparison of constant 143 with expression of type 'const char' is always false
[-Wtautological-constant-out-of-range-compare]
if (*str == 0xf4 && str[1] > 0x8f) return -1; // str[1] < 0x80 is checked below
~~~~~~ ^ ~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment