[tor-bugs] #5969 [Tor Client]: A couple of compile warnings with clang 3.1

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed May 30 22:08:10 UTC 2012


#5969: A couple of compile warnings with clang 3.1
------------------------+---------------------------------------------------
 Reporter:  Sebastian   |          Owner:                    
     Type:  defect      |         Status:  needs_review      
 Priority:  normal      |      Milestone:  Tor: 0.2.2.x-final
Component:  Tor Client  |        Version:                    
 Keywords:              |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------

Comment(by Sebastian):

 Unfortunately that's not yet the whole fix, these two errors get
 introduced by it:

 {{{
 log.c:273:37: error: format string is not a string literal [-Werror
 ,-Wformat-nonliteral]
   r = tor_vsnprintf(buf+n,buf_len-n,format,ap);
                                     ^~~~~~

 control.c:619:29: error: format string is not a string literal [-Werror
 ,-Wformat-nonliteral]
   len = tor_vasprintf(&buf, format, ap);
                             ^~~~~~

 }}}

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


More information about the tor-bugs mailing list