[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #8573 [Tor]: master build warning on i386 with clang



#8573: master build warning on i386 with clang
---------------------+------------------------------------------------------
 Reporter:  weasel   |          Owner:                     
     Type:  defect   |         Status:  new                
 Priority:  normal   |      Milestone:                     
Component:  Tor      |        Version:  Tor: 0.2.4.11-alpha
 Keywords:  jenkins  |         Parent:                     
   Points:           |   Actualpoints:                     
---------------------+------------------------------------------------------
 There are a couple of implicit off64_T to size_t conversions like this:
 {{{
 15:33:07        clang -DHAVE_CONFIG_H -I.  -I./src/ext -Isrc/ext
 -I./src/common -Isrc/common -I./src/or -Isrc/or
 -DSHARE_DATADIR="\"/usr/local/share\""
 -DLOCALSTATEDIR="\"/usr/local/var\"" -DBINDIR="\"/usr/local/bin\""
 -I./src/common     -g -O2 -D_FORTIFY_SOURCE=2 -Qunused-arguments -fstack-
 protector-all -Wstack-protector -fwrapv --param ssp-buffer-size=1 -fPIE
 -Wall -fno-strict-aliasing -W -Wfloat-equal -Wundef -Wpointer-arith
 -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls
 -Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-strings -Wmissing-
 declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast
 -Wswitch-enum -Werror -Winit-self -Wmissing-field-initializers
 -Wdeclaration-after-statement -Wold-style-definition -Waddress -Wmissing-
 noreturn -Wstrict-overflow=1 -Wshorten-64-to-32 -MT
 src/common/crypto_curve25519.o -MD -MP -MF $depbase.Tpo -c -o
 src/common/crypto_curve25519.o src/common/crypto_curve25519.c &&\
 15:33:07        mv -f $depbase.Tpo $depbase.Po
 15:33:07 src/common/crypto_curve25519.c:172:28: error: implicit conversion
 loses integer precision: '__off64_t' (aka 'long long') to 'size_t' (aka
 'unsigned int') [-Werror,-Wshorten-64-to-32]
 15:33:07     memwipe(content, 0, st.st_size);
 15:33:07     ~~~~~~~             ~~~^~~~~~~
 15:33:07 1 error generated.
 }}}

 Full log is currently at https://jenkins.torproject.org/job/tor-ci-linux-
 clang/ARCHITECTURE=i386/1/console but that link might not be too stable
 yet.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8573>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs