Changeset 184944 in webkit


Ignore:
Timestamp:
May 27, 2015, 11:12:46 PM (10 years ago)
Author:
ap@apple.com
Message:

[Mac] Fix clang static analyzer build
https://bugs.webkit.org/show_bug.cgi?id=145426
rdar://problem/20947408

Reviewed by Dan Bernstein.

  • wtf/spi/darwin/XPCSPI.h: Correct declarations of xpc_retain and xpc_release.
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r184928 r184944  
     12015-05-27  Alexey Proskuryakov  <ap@apple.com>
     2
     3        [Mac] Fix clang static analyzer build
     4        https://bugs.webkit.org/show_bug.cgi?id=145426
     5        rdar://problem/20947408
     6
     7        Reviewed by Dan Bernstein.
     8
     9        * wtf/spi/darwin/XPCSPI.h: Correct declarations of xpc_retain and xpc_release.
     10
    1112015-05-27  Dean Jackson  <dino@apple.com>
    212
  • trunk/Source/WTF/wtf/spi/darwin/XPCSPI.h

    r183209 r184944  
    130130EXTERN_C xpc_type_t xpc_get_type(xpc_object_t);
    131131EXTERN_C void xpc_main(xpc_connection_handler_t);
    132 EXTERN_C xpc_object_t xpc_retain(xpc_object_t);
    133 EXTERN_C void xpc_release(xpc_object_t);
    134132EXTERN_C const char* xpc_string_get_string_ptr(xpc_object_t);
    135133EXTERN_C void xpc_transaction_begin(void);
     
    148146#endif
    149147
    150 #if !defined(xpc_retain) && OS_OBJECT_USE_OBJC_RETAIN_RELEASE
     148#if OS_OBJECT_USE_OBJC_RETAIN_RELEASE
     149#if !defined(xpc_retain)
    151150#define xpc_retain(object) ({ xpc_object_t _o = (object); _xpc_object_validate(_o); [_o retain]; })
    152151#endif
     152#else
     153EXTERN_C xpc_object_t xpc_retain(xpc_object_t);
     154#endif
    153155
    154 #if !defined(xpc_release) && OS_OBJECT_USE_OBJC_RETAIN_RELEASE
     156#if OS_OBJECT_USE_OBJC_RETAIN_RELEASE
     157#if !defined(xpc_retain)
    155158#define xpc_release(object) ({ xpc_object_t _o = (object); _xpc_object_validate(_o); [_o release]; })
     159#endif
     160#else
     161EXTERN_C void xpc_release(xpc_object_t);
    156162#endif
    157163
Note: See TracChangeset for help on using the changeset viewer.