diff options
Diffstat (limited to 'memory/mozalloc/mozalloc.h')
-rw-r--r-- | memory/mozalloc/mozalloc.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/memory/mozalloc/mozalloc.h b/memory/mozalloc/mozalloc.h index 8c224472c4..fca8c35413 100644 --- a/memory/mozalloc/mozalloc.h +++ b/memory/mozalloc/mozalloc.h @@ -33,14 +33,6 @@ #define MOZALLOC_HAVE_XMALLOC -/* Workaround build problem with Sun Studio 12 */ -#if defined(__SUNPRO_C) || defined(__SUNPRO_CC) -# undef MOZ_MUST_USE -# define MOZ_MUST_USE -# undef MOZ_ALLOCATOR -# define MOZ_ALLOCATOR -#endif - #if defined(__cplusplus) extern "C" { #endif /* ifdef __cplusplus */ @@ -95,10 +87,10 @@ MFBT_API char* moz_xstrndup(const char* str, size_t strsize) #if defined(HAVE_POSIX_MEMALIGN) -MFBT_API MOZ_MUST_USE +MFBT_API __attribute__ ((warn_unused_result)) int moz_xposix_memalign(void **ptr, size_t alignment, size_t size); -MFBT_API MOZ_MUST_USE +MFBT_API __attribute__ ((warn_unused_result)) int moz_posix_memalign(void **ptr, size_t alignment, size_t size); #endif /* if defined(HAVE_POSIX_MEMALIGN) */ |