Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

do not use warn_unused_result compiler attribute when building C++

  • Loading branch information...
commit 0f66c6fe3ad8939fcc773e289816f5cb99932f20 1 parent ca145dc
@rsms authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 HRefcountLogger.h
View
6 HRefcountLogger.h
@@ -1,7 +1,11 @@
#import <Cocoa/Cocoa.h>
#ifndef WARN_UNUSED
-#define WARN_UNUSED __attribute__((warn_unused_result))
+ #ifndef __cplusplus
+ #define WARN_UNUSED __attribute__((warn_unused_result))
+ #else
+ #define WARN_UNUSED
+ #endif
#endif
@interface HRefcountLogger : NSObject {
Please sign in to comment.
Something went wrong with that request. Please try again.