[tor-bugs] #22916 [Core Tor/Tor]: Clang warnings when building with openssl and scrypt

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Jul 13 21:48:01 UTC 2017


#22916: Clang warnings when building with openssl and scrypt
-------------------------+-------------------------------------------------
     Reporter:  nickm    |      Owner:
         Type:  defect   |     Status:  new
     Priority:  Medium   |  Milestone:  Tor: 0.3.2.x-final
    Component:  Core     |    Version:
  Tor/Tor                |   Keywords:  027-backport 028-backport
     Severity:  Normal   |  029-backport 030-backport 031-backport
Actual Points:           |  Parent ID:
       Points:  .1       |   Reviewer:
      Sponsor:           |
-------------------------+-------------------------------------------------
 {{{
 src/test/test_crypto_slow.c:161:23: error: implicit conversion loses
 integer
       precision: 'uint64_t' (aka 'unsigned long') to 'uint32_t'
       (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
                    N, r, p, buf1, dk_len);
                       ^
 src/test/test_crypto_slow.c:161:26: error: implicit conversion loses
 integer
       precision: 'uint64_t' (aka 'unsigned long') to 'uint32_t'
       (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
                    N, r, p, buf1, dk_len);
                          ^
 src/test/test_crypto_slow.c:181:23: error: implicit conversion loses
 integer
       precision: 'uint64_t' (aka 'unsigned long') to 'uint32_t'
       (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
                    N, r, p, buf1, dk_len);
                       ^
 src/test/test_crypto_slow.c:181:26: error: implicit conversion loses
 integer
       precision: 'uint64_t' (aka 'unsigned long') to 'uint32_t'
       (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
                    N, r, p, buf1, dk_len);
                          ^
 src/test/test_crypto_slow.c:204:23: error: implicit conversion loses
 integer
       precision: 'uint64_t' (aka 'unsigned long') to 'uint32_t'
       (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
                    N, r, p, buf1, dk_len);
                       ^
 src/test/test_crypto_slow.c:204:26: error: implicit conversion loses
 integer
       precision: 'uint64_t' (aka 'unsigned long') to 'uint32_t'
       (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
                    N, r, p, buf1, dk_len);
                          ^
 src/test/test_crypto_slow.c:228:23: error: implicit conversion loses
 integer
       precision: 'uint64_t' (aka 'unsigned long') to 'uint32_t'
       (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
                    N, r, p, buf1, dk_len);
                       ^
 src/test/test_crypto_slow.c:228:26: error: implicit conversion loses
 integer
       precision: 'uint64_t' (aka 'unsigned long') to 'uint32_t'
       (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
                    N, r, p, buf1, dk_len);
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22916>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list