]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
Add casts to work around harmless -Werror warnings from clang 10.0.0,
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 26 Apr 2020 15:50:32 +0000 (15:50 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 26 Apr 2020 15:50:32 +0000 (15:50 +0000)
commit530429e4d6106c55bc735d1f397ba2d2c42c8cc5
tree66aa329d1ac431772bd7eb5674b3dc0662d77a1c
parent8e9f0f764c0d182d2a13898610857384ded7b65d
Add casts to work around harmless -Werror warnings from clang 10.0.0,
such as:

usr.sbin/timed/timed/networkdelta.c:160:13: error: implicit conversion from 'long' to 'float' changes value from 9223372036854775807 to 9223372036854775808
      [-Werror,-Wimplicit-int-float-conversion]
        float ap = LONG_MAX;            /* bounds on the median */
              ~~   ^~~~~~~~

Direct commit to stable/{10,11,12}, since timed has been removed from
FreeBSD 13.

git-svn-id: svn://svn.freebsd.org/base/stable/10@360338 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/timed/Makefile
usr.sbin/timed/timed/networkdelta.c