Re: [AD] warn_unused_result GCC attribute?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


AJ wrote:
that is an option for the users compiled program no?

how can you add a warn_unused to a library ?

Function and variable attributes are attached to the declarations, in the header files, just like the deprecated function attribute is currently.

aren't many of them GCC specific ?

All of them are, unless MSVC decided to start supporting the __atribute__ construct. A few #if checks would be fine for that, just like with __attribute__((deprecated)).




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/