Bug 408 - Comment-out unused hash-related code
Comment-out unused hash-related code
Product: unbound
Classification: Unclassified
Component: server
i386 Linux
: P5 trivial
Assigned To: unbound team
Depends on:
  Show dependency treegraph
Reported: 2011-09-15 19:56 CEST by Steve Snyder
Modified: 2018-08-27 15:28 CEST (History)
2 users (show)

See Also:

Exclude unused code from compilation (1.58 KB, application/octet-stream)
2011-09-15 19:56 CEST, Steve Snyder

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Snyder 2011-09-15 19:56:14 CEST
Created attachment 185 [details]
Exclude unused code from compilation

In lookup3.c there are 3 functions that are compiled but not used anywhere in unbound.  This patch excludes them from compilation.

hashbig() - not used in any context

hashword2() - only used in stand-alone compilation of file for self-test

hashlittle2() - only used in stand-alone compilation of file for self-test

This patch comments-out hashbig() entirely and #ifdef's the other 2 functions to the existing SELF_TEST definition.
Comment 1 Wouter Wijngaards 2011-09-16 09:11:57 CEST
Hi Steve,

Thank you for the patch.  Applied to svn trunk r2494.

Best regards, Wouter
Comment 2 skywestonline 2018-08-27 15:28:11 CEST
skywestonline login
skywestonline register new account