[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs