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

Re: [tor-bugs] #28193 [Core Tor/Tor]: Compile-time assertion



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