Home
last modified time | relevance | path

Searched hist:"898153 d9802558da57af9b964553d4c80ebba5b3" (Results 1 – 2 of 2) sorted by relevance

/trunk/main/sc/inc/
H A Dcompiler.hxx898153d9802558da57af9b964553d4c80ebba5b3 Sat Sep 03 01:44:05 UTC 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 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
/trunk/main/sal/inc/sal/
H A Dtypes.h898153d9802558da57af9b964553d4c80ebba5b3 Sat Sep 03 01:44:05 UTC 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 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