doc: revert unnamed union/struct workaround in favour of known-issues
A workaround used to silence a warning in the doc generation process which involved tagging a structure with a #define can now be solved with a cleaner approach which is non-code-invasive. Backup said change and update documentation on what to do when the issue is found. Change-Id: I1ef5224cd1b2df2e57c2ace438dba90ba3fc8528 Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
This commit is contained in:
parent
0fb7abfea5
commit
da5446281d
7 changed files with 17 additions and 57 deletions
|
@ -31,19 +31,4 @@
|
|||
#include <toolchain/other.h>
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Workaround for documentation parser limitations
|
||||
*
|
||||
* Current documentation parsers (sphinx under Doxygen) don't seem to
|
||||
* understand well unnamed structs / unions. A workaround is to make
|
||||
* the parser think there is something like a struct/union/enum name
|
||||
* that is actually something with no effect to the compiler.
|
||||
*
|
||||
* Current choice is to give it a 1B alignment. This basically tells
|
||||
* the compiler to do what is doing now: align it wherever it thinks
|
||||
* it should, as a 1B alignment "restriction" fits any other alignment
|
||||
* restriction we might have.
|
||||
*/
|
||||
#define __unnamed_workaround__ __attribute__((__aligned__(1)))
|
||||
|
||||
#endif /* _TOOLCHAIN_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue