[tor-bugs] #29145 [Core Tor/Tor]: Fix a compiler warning on OpenBSD in test-memwipe.c

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jan 21 22:14:17 UTC 2019


#29145: Fix a compiler warning on OpenBSD in test-memwipe.c
--------------------+------------------------------
 Reporter:  kjak    |          Owner:  (none)
     Type:  defect  |         Status:  new
 Priority:  Medium  |      Component:  Core Tor/Tor
  Version:          |       Severity:  Normal
 Keywords:          |  Actual Points:
Parent ID:          |         Points:
 Reviewer:          |        Sponsor:
--------------------+------------------------------
 In test-memwipe.c, `malloc_options` needs to be declared extern:

 {{{
 src/test/test-memwipe.c:50:13: warning: no previous extern declaration for
 non-static variable 'malloc_options' [-Wmissing-variable-declarations]
 const char *malloc_options="sufjj";
 }}}

 (`malloc_options` is only used on OpenBSD)

 PR to follow.

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


More information about the tor-bugs mailing list