[tor-bugs] #28193 [Core Tor/Tor]: Compile-time assertion
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Nov 5 02:12:46 UTC 2018
#28193: Compile-time assertion
--------------------------+----------------------------------
Reporter: riastradh | Owner: (none)
Type: enhancement | Status: needs_revision
Priority: Medium | Milestone: Tor: unspecified
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: nickm | Sponsor:
--------------------------+----------------------------------
Comment (by riastradh):
Elaborating on the unused attribute: the warning -Wunused-local-typedefs
fires specifically for typedefs within a function body. If you're not
comfortable relying on typedefs within a function body to work (which may
be an extension to C99, don't remember offhand), then you can proscribe
the use of CTASSERT inside function bodies and omit ATTR_UNUSED. If you
are comfortable relying on typedefs within a function body to work, then
you may want to keep the ATTR_UNUSED.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28193#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list