Commit Graph

16 Commits

Author SHA1 Message Date
b1744526cc WaE: C4722: destructor never returns, potential memory leak
Change-Id: I9691048ca7dc6e18cc904b29e8f6f59b11e002cf
2014-08-14 13:34:56 +03:00
06b63d3d83 remove the definition of SAL_THROW macro
Change-Id: I3d389174684cdc86ddb098629da57ebf142424c9
2014-06-05 08:34:46 +02:00
9adad0d1ea Avoid undef use of null ptr, use offsetof instead
Change-Id: I095f45b537690fe98bf385d99194db6319d7ac93
2014-05-22 18:36:31 +02:00
8899e449b7 fix include guard for sal/types.h
Change-Id: I77e10d2644b18b150f9489c7f754405974af107a
2014-05-18 11:58:22 +02:00
9bbb7ca9f7 Typo: formating -> formatting
Change-Id: If4aba89909a3ef049a756182c37d8a5d6812ae70
2014-02-06 22:41:48 +01:00
f2111a7ed1 remove SGI compiler checks
Change-Id: I8b4bce4b9c0cc457732b2de4af93049010de1097
2013-12-16 22:01:18 +01:00
66397a4fd2 fdo#72598 Remove SunStudio cruft from code base
Change-Id: I5150eec33228e18e274a8ae4effd3f185851b7f4
Reviewed-on: https://gerrit.libreoffice.org/7103
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-12-16 20:52:39 +00:00
40ad0e8f6c Declare SAL_THROW as documentation-only and deprecated
...which it effectively had been already anyway.

Change-Id: I6c9ae34f59e8bd44a6be38e6e719ad0a96773c1c
2013-11-28 13:15:39 +01:00
d8565bd266 Mark sal_Char, sal_sChar, sal_uChar as deprecated
...there never was a good reason to have SAL abstractions for the C/C++ char types anyway.

Change-Id: Id5da718cf26f12ebe57bc71e076c32d763c0982e
2013-11-27 12:52:32 +01:00
78d09575da Add SAL_WNOUNREACHABLE_CODE_PUSH and _POP macros
To be used around code where some compiler, in some circumstances,
generates bogus warnings about unreachable code, that it would be much
uglier to work around otherwise.

Specifically, I will at first now use this to get rid of MSVC warnings
about unreachable code when calling a function defined in another
source file (but going into the same library) that always throws. The
compiler notices this when one uses link-time code generation and it
thus can do global inlining of code from all compilation units that go
into a library (or executable).

For MSVC, the __pragma that the SAL_WNOUNREACHABLE_CODE_PUSH macro
expands to needs to be in force at the start curly brace of a
function, so place the PUSH macro before the function definition. For
clarity, I guess it is best that the corresponding POP macro comes
after the end of the function.

Change-Id: Icef5259c5360b9facdc136fec1f207665ce79d90
2013-09-04 15:00:03 +03:00
1e0feb5cf9 do not base feature checks on gcc version
Clang reports itself to be gcc4.2, so there fail there, instead use configure
checks.

Change-Id: Idb44a5c875b24a15546a6495de02a1b4af898443
2013-08-05 15:10:39 +02:00
2fbcff579b Revert "WaE: "HAVE_GCC_ATTRIBUTE_WARN_UNUSED" is not defined"
Nope, that caused warning: unknown attribute 'warn_unused' ignored with Clang.

This reverts commit 68c8dcec1f8689191e1be3366ec3c127096ae4d4.
2013-07-23 15:08:56 +03:00
68c8dcec1f WaE: "HAVE_GCC_ATTRIBUTE_WARN_UNUSED" is not defined
Change-Id: Id45e2a5c31471b4f5a59c4511bbacc12f78356f6
2013-07-23 13:36:51 +02:00
92dfa82d2d adjust for upstreaming of warn_unused attribute
The warn_unused attribute has been upstream to GCC and Clang, so use it if present.
Still warn about STL types if those do not use it yet (which is the status as of now).

Change-Id: I3c003e44c08d1d141e23bba38cf92e663a5ac353
2013-07-23 09:52:11 +02:00
9a33bfdacd mingw64: force C99 formating strings for consistency
Change-Id: I1399596a3edc3324ae4aa04e3866ae2f5e673985
2013-06-10 14:03:33 +02:00
6c7659b584 move URE headers to include/
Change-Id: Ib48a12e902f2311c295b2007f08f44dee28f431d
Reviewed-on: https://gerrit.libreoffice.org/3499
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24 05:17:10 +00:00