[tor-bugs] #6379 [Tor Client]: ignored return value warnings in OpenBSD_malloc

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Jul 31 14:26:05 UTC 2012


#6379: ignored return value warnings in OpenBSD_malloc
------------------------+---------------------------------------------------
 Reporter:  Sebastian   |          Owner:                    
     Type:  defect      |         Status:  new               
 Priority:  normal      |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor Client  |        Version:                    
 Keywords:              |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------

Comment(by nickm):

 For our uses, I believe we could just "#if 0" out the functions using
 posix_memalign entirely: we don't use those functions in Tor.

 The writev ones are for last-minute error reporting, so we can't do much
 more on an error than ignore it. So for them, we could add a cast to void
 to suppress the warning.

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


More information about the tor-bugs mailing list