Opened 12 years ago

Last modified 8 years ago

#850 closed defect (Fixed)

Compiler warning on FreeBSD 7.0

Reported by: sjmurdoch Owned by:
Priority: Very Low Milestone:
Component: Core Tor/Tor Version:
Severity: Keywords:
Cc: sjmurdoch Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


When compiling Tor using FreeBSD 7.0 (SVN r17189), I get the following warning:

util.c: In function '_tor_malloc_roundup':
util.c:260: warning: implicit declaration of function 'malloc_usable_size'

#include'ing <malloc_np.h> in util.c fixes the warning (this header file is mentioned in the malloc(3) manpage).

[Automatically added by flyspray2trac: Operating System: BSD]

Child Tickets

Change History (3)

comment:1 Changed 12 years ago by nickm


BTW, for stuff like this, I think you should just feel free to check in the fix. (In this case, adding the
header to and a conditional include to util.c.)

Fixing now.

comment:2 Changed 12 years ago by nickm

flyspray2trac: bug closed.

comment:3 Changed 8 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.