[sr-dev] [kamailio/kamailio] db_redis: fix compilation warning (#1495)

Victor Seva notifications at github.com
Mon Apr 9 13:00:14 CEST 2018


> CC (clang) [M db_redis.so]		redis_table.o
> redis_table.c:728:27: warning: comparison of constant -1 with expression of type 'unsigned char' is always false [-Wtautological-constant-out-of-range-compare]
>                     if (c == EOF) {
>                        ~ ^  ~~~
> redis_table.c:754:27: warning: comparison of constant -1 with expression of type 'unsigned char' is always false [-Wtautological-constant-out-of-range-compare]
>                     if (c == EOF) {
>                         ~ ^  ~~~
> redis_table.c:794:40: warning: comparison of constant -1 with expression of type 'unsigned char' is always true [-Wtautological-constant-out-of-range-compare]
>                     if (c != '\n' && c != EOF) {
>                                     ~ ^  ~~~
> redis_table.c:807:20: warning: comparison of constant -1 with expression of type 'unsigned char' is always true [-Wtautological-constant-out-of-range-compare]
>         } while (c != EOF);
>                  ~ ^  ~~~
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1495

-- Commit Summary --

  * db_redis: fix compilation warning

-- File Changes --

    M src/modules/db_redis/redis_table.c (2)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/1495.patch
https://github.com/kamailio/kamailio/pull/1495.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1495
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180409/a847ee10/attachment.html>


More information about the sr-dev mailing list