[tor-bugs] #2689 [Tor Relay]: Compiler warning when building Tor under clang/LLVM

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Mar 9 14:31:31 UTC 2011


#2689: Compiler warning when building Tor under clang/LLVM
-----------------------+----------------------------------------------------
 Reporter:  sjmurdoch  |          Owner:                  
     Type:  defect     |         Status:  new             
 Priority:  trivial    |      Milestone:                  
Component:  Tor Relay  |        Version:  Tor: unspecified
 Keywords:             |         Parent:                  
   Points:             |   Actualpoints:                  
-----------------------+----------------------------------------------------
 With Git master (26009a3), building Tor under clang generates a compiler
 warning:

  rendclient.c:407:3: warning: expression result unused [-Wunused-value]
   (int) hid_serv_get_responsible_directories(responsible_dirs, desc_id);

 I presume the problem is the int cast, but it seems to do nothing so is
 there a reason to include it in the first place?

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


More information about the tor-bugs mailing list