[tor-bugs] #11633 [Tor]: Quench a few warnings found with gcc-4.2 and clang

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Apr 29 18:29:32 UTC 2014


#11633: Quench a few warnings found with gcc-4.2 and clang
------------------------+--------------------------------
     Reporter:  _x3j11  |      Owner:
         Type:  defect  |     Status:  needs_revision
     Priority:  normal  |  Milestone:  Tor: 0.2.5.x-final
    Component:  Tor     |    Version:
   Resolution:          |   Keywords:  tor-client build
Actual Points:          |  Parent ID:
       Points:          |
------------------------+--------------------------------

Comment (by nickm):

 Replying to [comment:2 _x3j11]:
 > I will have a think about the best way to address the NetBSD case (the
 second patch needs fixing anyway as it wasn't split correctly).

 So, most of the time_t patch is casting timeval.tv_sec to time_t before
 passing it to something that needs a time_t.  That doesn't need a change.

 For the 'add' cases, one option is to change the interval types to 'int'.
 We require that int be at least 32 bits, and I don't think we need any
 >68-year expiry times.  But that might be a big patch; I'm not sure.

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


More information about the tor-bugs mailing list