On Mon, Apr 24, 2017 at 3:42 PM, Matthias Welwarsky <matth...@welwarsky.de>
wrote:
> Suggestion:
>
> - surround the #define __unused with an "#ifndef __unused" bracket, that
> should fix the problem for MacOS (the #defines are obviously compatible).
>
>
>
Kind of missing the point, identifiers starting with double underscore are
reserved for all uses and can't be assumed to have any specific meaning.
Change the name in that case ("attribute_unused" for example).
Another option is to simply remove "static"; if the function is exported it
will no longer be unused. With the addition of a small comment explaining
why it's exported and unused, I think that's perfectly acceptable.
/Andreas
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel