diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-12-03 22:50:50 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-12-03 22:50:50 +0900 |
| commit | ea1911d23f492ef3874029a28ac1c28cd1fdb838 (patch) | |
| tree | 8e152b0f1a0dd79f8d3323a30eb0e9c3112012d4 /src/string.c | |
| parent | 54f2ed6afdde042861f2b620670c0d6d1909d744 (diff) | |
| download | mruby-ea1911d23f492ef3874029a28ac1c28cd1fdb838.tar.gz mruby-ea1911d23f492ef3874029a28ac1c28cd1fdb838.zip | |
Silence Clang warning with `MRB_INT64` and `MRB_32BIT` in `time.c`
Silence the following warnings:
```
/mruby/mrbgems/mruby-time/src/time.c:871:15: warning: result of comparison of constant 9223372036854775807 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
if (tm->sec > MRB_INT_MAX || tm->sec < MRB_INT_MIN) {
~~~~~~~ ^ ~~~~~~~~~~~
/mruby/mrbgems/mruby-time/src/time.c:871:40: warning: result of comparison of constant -9223372036854775808 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
if (tm->sec > MRB_INT_MAX || tm->sec < MRB_INT_MIN) {
~~~~~~~ ^ ~~~~~~~~~~~
/mruby/mrbgems/mruby-time/src/time.c:887:16: warning: result of comparison of constant 9223372036854775807 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
if (tm->usec > MRB_INT_MAX || tm->usec < MRB_INT_MIN) {
~~~~~~~~ ^ ~~~~~~~~~~~
/mruby/mrbgems/mruby-time/src/time.c:887:42: warning: result of comparison of constant -9223372036854775808 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
if (tm->usec > MRB_INT_MAX || tm->usec < MRB_INT_MIN) {
~~~~~~~~ ^ ~~~~~~~~~~~
```
Diffstat (limited to 'src/string.c')
0 files changed, 0 insertions, 0 deletions
