| 898153d9 | 03-Sep-2016 |
truckman <truckman@13f79535-47bb-0310-9956-ffa450edef68> |
In the SAL_UNUSED macro, __attribute((__unused__)) should be __attribute__((__unused__)), but both clang and gcc seem to understand both. Since __attribute__((__unused__)) can preceed the variable
In the SAL_UNUSED macro, __attribute((__unused__)) should be __attribute__((__unused__)), but both clang and gcc seem to understand both. Since __attribute__((__unused__)) can preceed the variable name, just like __pragma(warning(suppress:4100;suppress:4101)) for Visual Studio, so de-parameterize the SAL_UNUSED macro. Gcc whines if __attribute__((__unused__)) is used for a struct member, so create a separate define, SAL_UNUSED_MEMBER, which is empty for gcc, to handle struct members.
git-svn-id: https://svn.apache.org/repos/asf/openoffice/trunk@1759047 13f79535-47bb-0310-9956-ffa450edef68
show more ...
|