[tor-bugs] #14220 [Tor]: Suppress warnings for dual declaration in srtp.h

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Jan 15 17:36:33 UTC 2015


#14220: Suppress warnings for dual declaration in srtp.h
--------------------+---------------------
 Reporter:  nickm   |          Owner:
     Type:  defect  |         Status:  new
 Priority:  normal  |      Milestone:
Component:  Tor     |        Version:
 Keywords:          |  Actual Points:
Parent ID:          |         Points:
--------------------+---------------------
 OpenSSL has a function declared twice in the srtp.h header.

 {{{
 18:36:32 In file included from /srv/jenkins-workspace/workspace/tor-ci-
 mingwcross-0.2.5/ARCHITECTURE/i386/SUITE/jessie/UPSTREAM/include/openssl/ssl.h:1392:0,
 18:36:32                  from src/common/tortls.c:36:
 18:36:32 /srv/jenkins-workspace/workspace/tor-ci-
 mingwcross-0.2.5/ARCHITECTURE/i386/SUITE/jessie/UPSTREAM/include/openssl/srtp.h:142:26:
 error: redundant redeclaration of 'SSL_get_selected_srtp_profile' [-Werror
 =redundant-decls]
 18:36:32  SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);
 18:36:32                           ^
 18:36:32 /srv/jenkins-workspace/workspace/tor-ci-
 mingwcross-0.2.5/ARCHITECTURE/i386/SUITE/jessie/UPSTREAM/include/openssl/srtp.h:139:26:
 note: previous declaration of 'SSL_get_selected_srtp_profile' was here
 18:36:32  SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);
 18:36:32                           ^
 18:36:33 cc1: all warnings being treated as errors
 }}}

 I fixed this warning in master but it should get a changes file, so I'm
 giving it a bug number.

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


More information about the tor-bugs mailing list