[tor-bugs] #21159 [Core Tor/Tor]: Superfluous Include Statement

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Jan 8 15:21:54 UTC 2017


#21159: Superfluous Include Statement
----------------------------+---------------------
 Reporter:  BenjaminPollak  |          Owner:
     Type:  enhancement     |         Status:  new
 Priority:  Very Low        |      Milestone:
Component:  Core Tor/Tor    |        Version:
 Severity:  Trivial         |     Resolution:
 Keywords:                  |  Actual Points:
Parent ID:                  |         Points:
 Reviewer:                  |        Sponsor:
----------------------------+---------------------

Comment (by cypherpunks):

 Replying to [ticket:21159 BenjaminPollak]:
 > Would it be appropriate then, to delete line 4 of
 /src/test/test_bt_cl.c?

 No, because `orconfig.h` includes
 [https://www.gnu.org/software/libc/manual/html_node/Feature-Test-
 Macros.html feature test macros] which must be defined before including
 system header files.

 The other way around (as in removing the `orconfig.h` include from
 `util.h`) could be possible but you'd have to be sure every file that
 includes `util.h` has included `orconfig.h` before it. A quick grep shows
 59 inclusions of `util.h` which would all need to be checked. I'm not sure
 the amount of work justifies the benefits (if there are any).

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


More information about the tor-bugs mailing list